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