summaryrefslogtreecommitdiff
path: root/src/entities/wordWater.js
blob: e6272d1cb57063cbd74b6ce2f8e217d63ab0ed97 (plain)
1
2
3
4
5
6
7
8
9
game.createWordWater = () => {
  const wordWater = game.Entity();
  wordWater.addComponent(game.components.LoadPriority({priority: 3}));
  wordWater.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  wordWater.addComponent(game.components.Pushable({pushable: true}));
  wordWater.addComponent(game.components.Alive());
  wordWater.sprite = game.sprites.wordWater;
  return wordWater;
}