summaryrefslogtreecommitdiff
path: root/src/entities/wordPush.js
blob: aa24d46375c9901f2686d5eb60a446be654d11d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
game.createWordPush = () => {
  const wordPush = game.Entity();
  wordPush.addComponent(game.components.Position({x: 0, y: 0}));
  wordPush.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  wordPush.sprite = game.graphics.Sprite({
    image: game.assets.wordPush,
    spriteHeight: 24,
    spriteWidth: 24,
    numFrames: 3,
    timePerFrame: 100,
  });
  return wordPush;
}