Skip to content

pirelenito/ecsy-talk

Repository files navigation

ECS code examples

screenshot

Code examples for the talk on ECS with ECSY.

For the slides check: slides.com/pirelenito/games-web-ecsy.

Running

To run the examples you will need Node.js and Yarn.

Then in the project folder, install its dependencies:

yarn

And start the development server with:

yarn dev

There are a couple of examples:

  • first-example/index.html: shows a simple rendering loop
  • game-loop/index.html: shows an interactive game loop with "physics"
  • ecs/index.html: shows the previous game loop example converted to ECS
  • ecs/complete.html: shows a more elaborate example (multiplayer, more entities)
  • ecs/three.html: the complete example from before but in 3D

Tools

Built with: