summaryrefslogtreecommitdiff
path: root/src/entities/wordLava.js
blob: 573dd298651a4592536067f50cbe63828516e9a8 (plain)
1
2
3
4
5
6
7
8
9
game.createWordLava = () => {
  const wordLava = game.Entity();
  wordLava.addComponent(game.components.LoadPriority({priority: 3}));
  wordLava.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  wordLava.addComponent(game.components.Pushable({pushable: true}));

  wordLava.sprite = game.sprites.wordLava;
  return wordLava;
}