From 69b5f4448c1cbd00ebcb6f444f2434cc272b7e97 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Sun, 10 Apr 2022 22:13:05 -0600 Subject: Unlimited undo; add spritename component instead of sprites on each entity; update canvas on game object --- src/entities/wordWin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entities/wordWin.js') diff --git a/src/entities/wordWin.js b/src/entities/wordWin.js index a3830b9..ed837d0 100644 --- a/src/entities/wordWin.js +++ b/src/entities/wordWin.js @@ -4,6 +4,6 @@ game.createWordWin = () => { wordWin.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100})); wordWin.addComponent(game.components.Pushable({pushable: true})); wordWin.addComponent(game.components.Alive()); - wordWin.sprite = game.sprites.wordWin; + wordWin.addComponent(game.components.Sprite({spriteName: "wordWin"})) return wordWin; } -- cgit v1.2.3-70-g09d2