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