diff options
Diffstat (limited to 'Homework/cs5410/bbiy/src/entities/wordLava.js')
| -rw-r--r-- | Homework/cs5410/bbiy/src/entities/wordLava.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Homework/cs5410/bbiy/src/entities/wordLava.js b/Homework/cs5410/bbiy/src/entities/wordLava.js new file mode 100644 index 0000000..cf31286 --- /dev/null +++ b/Homework/cs5410/bbiy/src/entities/wordLava.js @@ -0,0 +1,11 @@ +game.createWordLava = () => { + const wordLava = game.Entity(); + wordLava.addComponent(game.components.LoadPriority({priority: 3})); + wordLava.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100})); + wordLava.addComponent(game.components.Pushable({pushable: true})); + wordLava.addComponent(game.components.Alive()); + + wordLava.addComponent(game.components.Sprite({spriteName: "wordLava"})) + wordLava.addComponent(game.components.Noun({select: "lava"})); + return wordLava; +} |
