diff options
author | phat_sumo <ethanjpayne1@gmail.com> | 2022-04-01 17:43:56 -0600 |
---|---|---|
committer | phat_sumo <ethanjpayne1@gmail.com> | 2022-04-01 17:43:56 -0600 |
commit | d5750294b1169e85cc1171aa85b2ea522656d8b2 (patch) | |
tree | d7500faa40a2641703ff59208a8afdd31937b844 /src/entities/wordLava.js | |
parent | 100bbecccbf7b5e09ee60d1c2934df09006344f1 (diff) | |
download | bbiy-d5750294b1169e85cc1171aa85b2ea522656d8b2.tar.gz bbiy-d5750294b1169e85cc1171aa85b2ea522656d8b2.zip |
add new entities. they still need new components as we add them
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; +} |