Something went wrong. Try again.
Experimental canvas 2D engine for tile-based sidescroller/sandbox games, created strictly for educational purposes.
entity-component-system game-engine canvas-2d
Something went wrong. Try again.
1234567891011121314import { ComponentType, Entity, Context } from "@cosmic/core";
/** * Systems use data provided by the World/ECS to transform and or work with entities. * They can query the World with a set of Components and receive all entities carying those features. * */export class System { public constructor( public components: ComponentType[], public pulse: (ctx: Context, entities: Array<[Entity, ...unknown[]]>) => void, ) {}}