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