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