Sprite Canvas
The standard 2D canvas context can be used to create textures which can then be used to create sprites.
const ctx = canvas.getContext();
ctx.fillStyle = 'green';
ctx.fillRect(10, 10, 80, 80);
this.world.createEntity([
),
]);
The standard 2D canvas context can be used to create textures which can then be used to create sprites.
const ctx = canvas.getContext();
ctx.fillStyle = 'green';
ctx.fillRect(10, 10, 80, 80);
this.world.createEntity([
),
]);