A downloadable ECS implemntation for Windows

A small entity-component-system project was made as a demo for my upcoming game. Important things to note:

  • Entity: simple unique ID which is an integer.
  • Component: sets of data grouped together.
  • System: process logic based on entities' components information.
  • All of these properties have manager classes. They are grouped by a thin wrapper at the end, which functions as a minimal engine.
  • Event: ways for systems to communicate. For eg. an entity touched the ground, Collision system would process and send 'touchGround' event message to Gravity system, so player's double jump is reset. This is similar to the Observer pattern but easier.

I only implemented Rigid Body, Input, Collision and Health systems.

But I think it can be extended for further developments if wanted.

The project uses SFML for graphics and player's events and inputs listener.

The project is really boring regarding playable aspects. More than hopping around, all you can do is edit the configuration file to define your map. But source code has advanced collisions detection and resolve, a simple and efficient ECS concept, and that is what I want to share. 

Download

Download
Executable 4.6 MB
Download
Source code 18 kB

Install instructions

Source code is available. You can link and build the source code or directly use the executable. Note that if you use the first method, you must download SFML as well.

SFML: Download (SFML) (sfml-dev.org)

If you download the executable file, you can just open "SimpleGame.exe"

Leave a comment

Log in with itch.io to leave a comment.