This demo demonstrate how to render basic stuff using Sprites.
Use Arrows or WASD to move the player. Collision detection is very basic so don't expect much from it.
The following code example show how to use sprites.
// load sprite's texture asset
let texture = await Shaku.assets.loadTexture('assets/sprite.png');
// create a sprite
let sprite = new Shaku.gfx.Sprite(texture);
sprite.position.set(100, 100)
sprite.rotation = Math.PI;
sprite.color = Shaku.utils.Color.red;
// create a sprites batch
let spritesBatch = new Shaku.gfx.SpriteBatch();
// part below goes between startFrame() and endFrame()
// -------------------------------------------------------
// draw the sprite
spritesBatch.begin();
spritesBatch.drawSprite(sprite);
spritesBatch.end();