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