diff options
Diffstat (limited to 'src/entities/wordWall.js')
-rw-r--r-- | src/entities/wordWall.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/entities/wordWall.js b/src/entities/wordWall.js new file mode 100644 index 0000000..b973933 --- /dev/null +++ b/src/entities/wordWall.js @@ -0,0 +1,13 @@ +game.createWordWall = () => { + const wordWall = game.Entity(); + wordWall.addComponent(game.components.Position({x: 0, y: 0})); + wordWall.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100})); + wordWall.sprite = game.graphics.Sprite({ + image: game.assets.wordWall, + spriteHeight: 24, + spriteWidth: 24, + numFrames: 3, + timePerFrame: 100, + }); + return wordWall; +} |