summaryrefslogtreecommitdiff
path: root/src/entities/wordWin.js
blob: e8948ee407f13d912c42e0dc9648dc97e34c7c81 (plain)
1
2
3
4
5
6
7
8
9
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;
}