summaryrefslogtreecommitdiff
path: root/src/entities/wordRock.js
blob: 0897e35d9ee6c062f44ae8a45734d0f225d54ce6 (plain)
1
2
3
4
5
6
7
8
9
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.addComponent(game.components.Pushable({pushable: true}));
  wordRock.addComponent(game.components.Alive());
  wordRock.addComponent(game.components.Sprite({spriteName: "wordRock"}))
  return wordRock;
}