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