summaryrefslogtreecommitdiff
path: root/src/entities/wall.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/wall.js')
-rw-r--r--src/entities/wall.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/entities/wall.js b/src/entities/wall.js
index 55226d0..d5167c4 100644
--- a/src/entities/wall.js
+++ b/src/entities/wall.js
@@ -1,13 +1,7 @@
game.createWall = () => {
const wall = game.Entity();
- wall.addComponent(game.components.Position({x: 0, y: 0}));
+ wall.addComponent(game.components.LoadPriority({priority: 3}));
wall.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
- wall.sprite = game.graphics.Sprite({
- image: game.assets.wall,
- spriteHeight: 24,
- spriteWidth: 24,
- numFrames: 3,
- timePerFrame: 100,
- });
+ wall.sprite = game.sprites.wall;
return wall;
}