summaryrefslogtreecommitdiff
path: root/src/entities/wordRock.js
blob: be303c47a582c2055c184c595ccd38655d8de9fa (plain)
1
2
3
4
5
6
7
8
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.sprite = game.sprites.wordRock;
  return wordRock;
}