summaryrefslogtreecommitdiff
path: root/src/entities/wordKill.js
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-10 22:13:05 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-10 22:13:05 -0600
commit69b5f4448c1cbd00ebcb6f444f2434cc272b7e97 (patch)
tree02152d8eb67f1b4913222b412d72740f59808c7b /src/entities/wordKill.js
parenta23ea2e014d140dbe9c090e6cf7d55906480c260 (diff)
downloadbbiy-69b5f4448c1cbd00ebcb6f444f2434cc272b7e97.tar.gz
bbiy-69b5f4448c1cbd00ebcb6f444f2434cc272b7e97.zip
Unlimited undo; add spritename component instead of sprites on each entity; update canvas on game object
Diffstat (limited to 'src/entities/wordKill.js')
-rw-r--r--src/entities/wordKill.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/wordKill.js b/src/entities/wordKill.js
index 283ce90..8ea04d9 100644
--- a/src/entities/wordKill.js
+++ b/src/entities/wordKill.js
@@ -4,6 +4,6 @@ game.createWordKill = () => {
wordKill.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
wordKill.addComponent(game.components.Pushable({pushable: true}));
wordKill.addComponent(game.components.Alive());
- wordKill.sprite = game.sprites.wordKill;
+ wordKill.addComponent(game.components.Sprite({spriteName: "wordKill"}))
return wordKill;
}