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