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.
12345678910111213export class Transform { constructor( public x: number = 0, public y: number = 0, public width: number = 32, public height: number = 32,
// Todo: Consider moving this to Collider.ts public isCollidingWithEntity: boolean = false, public isCollidingWithCanvasBoundaries: boolean = false, ) {}}