summaryrefslogtreecommitdiff
path: root/src/entities
diff options
context:
space:
mode:
authorphat_sumo <ethanjpayne1@gmail.com>2022-04-06 18:26:03 -0600
committerphat_sumo <ethanjpayne1@gmail.com>2022-04-06 18:26:03 -0600
commita54812ed50379bd8baacce53c16aeccdff752327 (patch)
tree3a4cb4e46a80f9c9091f79519822bfb1ca1a2f9f /src/entities
parent66b29967e1a0c83c09da990fdb50e613a7e6caa0 (diff)
downloadbbiy-a54812ed50379bd8baacce53c16aeccdff752327.tar.gz
bbiy-a54812ed50379bd8baacce53c16aeccdff752327.zip
convert hedge to grayscale, fix lava entity to use the new sprites, wordIs is pushable, dynamically color sprites
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/lava.js9
-rw-r--r--src/entities/wordIs.js3
2 files changed, 4 insertions, 8 deletions
diff --git a/src/entities/lava.js b/src/entities/lava.js
index c0389bc..bd1ca04 100644
--- a/src/entities/lava.js
+++ b/src/entities/lava.js
@@ -4,12 +4,7 @@ game.createLava = () => {
lava.addComponent(game.components.LoadPriority({priority: 5}));
lava.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
lava.addComponent(game.components.Alive());
- lava.sprite = game.graphics.Sprite({
- image: game.assets.lava,
- spriteHeight: 24,
- spriteWidth: 24,
- numFrames: 3,
- timePerFrame: 100,
- });
+ lava.sprite = game.sprites.lava;
+
return lava;
}
diff --git a/src/entities/wordIs.js b/src/entities/wordIs.js
index a32bfa1..ca00856 100644
--- a/src/entities/wordIs.js
+++ b/src/entities/wordIs.js
@@ -2,7 +2,8 @@ game.createWordIs = () => {
const wordIs = game.Entity();
wordIs.addComponent(game.components.LoadPriority({priority: 3}));
wordIs.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
- wordIs.addComponent(game.components.Stop({stop: true}));
+ // wordIs.addComponent(game.components.Stop({stop: true}));
+ wordIs.addComponent(game.components.Pushable());
wordIs.addComponent(game.components.Alive());
wordIs.sprite = game.sprites.wordIs;
return wordIs;