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