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