summaryrefslogtreecommitdiff
path: root/src/entities/lava.js
blob: bd1ca045e910a3d5efd9af69368b17af0172af2a (plain)
1
2
3
4
5
6
7
8
9
10
game.createLava = () => {
  // TODO: Split this into two entities: water and lava
  const lava = game.Entity();
  lava.addComponent(game.components.LoadPriority({priority: 5}));
  lava.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
  lava.addComponent(game.components.Alive());
	lava.sprite = game.sprites.lava;

  return lava;
}