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