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