From 32879581e53fae5e684c24b44433172d8375d69e Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Mon, 11 Mar 2024 16:22:06 -0600 Subject: support underscores in function application, add sign entity --- src/engine/config/sprites.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/engine/config/sprites.ts') diff --git a/src/engine/config/sprites.ts b/src/engine/config/sprites.ts index f8912d5..481dbb9 100644 --- a/src/engine/config/sprites.ts +++ b/src/engine/config/sprites.ts @@ -11,6 +11,7 @@ export enum Sprites { BUBBLE, PORTAL, GRASS, + SIGN, } export interface SpriteSpec { @@ -126,3 +127,12 @@ const grassSpriteSpec = { sheet: "/assets/grass.png", }; SPRITE_SPECS.set(Sprites.GRASS, grassSpriteSpec); + +const signSpriteSpec = { + msPerFrame: 200, + width: 64, + height: 64, + frames: 3, + sheet: "/assets/sign.png", +}; +SPRITE_SPECS.set(Sprites.SIGN, signSpriteSpec); -- cgit v1.2.3-70-g09d2