summaryrefslogtreecommitdiff
path: root/src/entities/wordPush.js
blob: 5594e46dccc5ffe60a7aaf589a7b19838a78ccb2 (plain)
1
2
3
4
5
6
7
8
9
10
game.createWordPush = () => {
  const wordPush = game.Entity();
  wordPush.addComponent(game.components.LoadPriority({priority: 3}));
  wordPush.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  wordPush.addComponent(game.components.Pushable({pushable: true}));
  wordPush.addComponent(game.components.Alive());
  wordPush.addComponent(game.components.Sprite({spriteName: "wordPush"}));
  wordPush.addComponent(game.components.Verb({action: "push"}));
  return wordPush;
};