feat: final generated assets
This commit is contained in:
BIN
assets/pot.gen.png
Normal file
BIN
assets/pot.gen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 865 B |
BIN
assets/rock.gen.png
Normal file
BIN
assets/rock.gen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 775 B |
@ -21,6 +21,8 @@ k.loadSprite("grass", "assets/grasss.png");
|
|||||||
k.loadSprite("player", "assets/actor.png");
|
k.loadSprite("player", "assets/actor.png");
|
||||||
k.loadSprite("shard", "assets/shard.png");
|
k.loadSprite("shard", "assets/shard.png");
|
||||||
k.loadSprite("chicken", "assets/chicken.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
|
// Background music. Browsers block autoplay until the user interacts, so start
|
||||||
// looping on the first key/click and keep the handle across scene changes.
|
// looping on the first key/click and keep the handle across scene changes.
|
||||||
|
|||||||
@ -21,6 +21,8 @@ const SPRITES = {
|
|||||||
player: { name: "player", scale: 0.13 }, // 428px art -> ~52px tall
|
player: { name: "player", scale: 0.13 }, // 428px art -> ~52px tall
|
||||||
shard: { name: "shard", scale: 0.085 }, // 500px debris -> ~26px clump
|
shard: { name: "shard", scale: 0.085 }, // 500px debris -> ~26px clump
|
||||||
chicken: { name: "chicken", scale: 1.1 },
|
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) {
|
export function visual(k, kind) {
|
||||||
|
|||||||
Reference in New Issue
Block a user