Demo of Entity - Component - System in Javascript
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Latest commit 224a473 Jun 30, 2015

Entity Component System - Javascript Demo

Rectangle Eater

View the running demo

Check out a more fleshed out version of the game at

This is a basic example of Entity Component System (ECS) in Javascript. View the corresponding tutorial.

Code Structure

This is a no frills approach to demonstrate ECS. To demonstrate concepts, it does not use CommonJS / RequireJS or any other third party dependencies. Because this is used to demonstrate ECS specific concepts, many best practices (such as using modules, e.g., Browserify) are not observed in favor of simplifying concepts; this code is was developed for demonstration purposes.