Example snippet (deploy to /docs):
// component function Position(x=0,y=0) return x,y; // system function movementSystem(entities, dt) entities.forEach(e=> if(e.components.velocity && e.components.position) e.components.position.x += e.components.velocity.vx * dt; e.components.position.y += e.components.velocity.vy * dt; github io all games
A typical “all games” collection includes: Example snippet (deploy to /docs): // component function
Several unique factors have driven the explosion of games on this domain: y=0) return x