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