Our great sponsors
-
polymers
A library of components and systems for use with the Polymorph ECS, covering graphics, physics, networking, database queries, console IO, and more.
-
polymorph
A fast and frugal entity-component-system library with a focus on code generation and compile time optimisation.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
My ECS is written in Nim but you might find the demo game for it instructive. It's a 2D top down shooter, and looks like this when run.
For a simpler example, check out the particle demo here. This is really only two systems - one for movement and one for calculating force as distance from the mouse (the 3rd system is just for colouring). The rest of the code is creating textures and other setup. For something even simpler, have a look at this simple physics example.