Animated Sprites
Sprites can be animated by providing a sprite sheet and a frame rate.
width: 12 * 4,
height: 24 * 4,
});
this.world.createEntity([
sprite,
animation,
]);
animation.paused = !animation.paused;
Sprites can be animated by providing a sprite sheet and a frame rate.
width: 12 * 4,
height: 24 * 4,
});
this.world.createEntity([
sprite,
animation,
]);
animation.paused = !animation.paused;