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