summaryrefslogtreecommitdiff
path: root/src/entities/wordRock.js
blob: 66f4efbd6cd2e50d5ed043048ba7b8a0f0d2e787 (plain)
1
2
3
4
5
6
7
game.createWordRock = () => {
  const wordRock = game.Entity();
  wordRock.addComponent(game.components.LoadPriority({priority: 3}));
  wordRock.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  wordRock.sprite = game.sprites.wordRock;
  return wordRock;
}