feat: final generated assets

This commit is contained in:
2026-07-27 13:27:03 -04:00
parent ff6a418e16
commit f048f79198
4 changed files with 4 additions and 0 deletions

BIN
assets/pot.gen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

BIN
assets/rock.gen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

View File

@ -21,6 +21,8 @@ k.loadSprite("grass", "assets/grasss.png");
k.loadSprite("player", "assets/actor.png");
k.loadSprite("shard", "assets/shard.png");
k.loadSprite("chicken", "assets/chicken.png");
k.loadSprite("pot", "assets/pot.gen.png");
k.loadSprite("obstacle", "assets/rock.gen.png");
// Background music. Browsers block autoplay until the user interacts, so start
// looping on the first key/click and keep the handle across scene changes.

View File

@ -21,6 +21,8 @@ const SPRITES = {
player: { name: "player", scale: 0.13 }, // 428px art -> ~52px tall
shard: { name: "shard", scale: 0.085 }, // 500px debris -> ~26px clump
chicken: { name: "chicken", scale: 1.1 },
pot: { name: "pot", scale: 0.6 }, // 48px art -> ~29px
obstacle: { name: "obstacle", scale: 0.78 }, // 48px art -> ~37px
};
export function visual(k, kind) {