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