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