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.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/entities/wordWater.js b/src/entities/wordWater.js
new file mode 100644
index 0000000..b26dc57
--- /dev/null
+++ b/src/entities/wordWater.js
@@ -0,0 +1,13 @@
+game.createWordWater = () => {
+ const wordWater = game.Entity();
+ wordWater.addComponent(game.components.Position({x: 0, y: 0}));
+ 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,
+ });
+ return wordWater;
+}