diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-02 02:22:46 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-02 02:24:18 -0700 |
commit | 06bb4177202b432d5f42141975ec82b5a8837f0e (patch) | |
tree | 7a9cb1e4177684848a3fcca91eed2ec703c787fb /src/engine/config | |
parent | cd6a3a56b0a9f27dd7250c7641776fe1bd184888 (diff) | |
download | the-abstraction-engine-06bb4177202b432d5f42141975ec82b5a8837f0e.tar.gz the-abstraction-engine-06bb4177202b432d5f42141975ec82b5a8837f0e.zip |
slight refactor in collision behavior
Diffstat (limited to 'src/engine/config')
-rw-r--r-- | src/engine/config/sprites.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/engine/config/sprites.ts b/src/engine/config/sprites.ts index eab65fd..7cb8adf 100644 --- a/src/engine/config/sprites.ts +++ b/src/engine/config/sprites.ts @@ -3,6 +3,7 @@ import { Direction } from "../interfaces/Direction"; export enum Sprites { PLAYER, FUNCTION_BOX, + WALL, } export interface SpriteSpec { @@ -46,3 +47,12 @@ const functionBoxSpriteSpec = { sheet: "/assets/function_block.png", }; SPRITE_SPECS.set(Sprites.FUNCTION_BOX, functionBoxSpriteSpec); + +const wallSpriteSpec = { + msPerFrame: 200, + width: 64, + height: 64, + frames: 3, + sheet: "/assets/wall.png", +}; +SPRITE_SPECS.set(Sprites.WALL, wallSpriteSpec); |