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