diff options
Diffstat (limited to 'src/entities/wordKill.js')
-rw-r--r-- | src/entities/wordKill.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/entities/wordKill.js b/src/entities/wordKill.js index a1a19af..1835f59 100644 --- a/src/entities/wordKill.js +++ b/src/entities/wordKill.js @@ -1,13 +1,7 @@ game.createWordKill = () => { const wordKill = game.Entity(); - wordKill.addComponent(game.components.Position({x: 0, y: 0})); + wordKill.addComponent(game.components.LoadPriority({priority: 3})); wordKill.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100})); - wordKill.sprite = game.graphics.Sprite({ - image: game.assets.wordKill, - spriteHeight: 24, - spriteWidth: 24, - numFrames: 3, - timePerFrame: 100, - }); + wordKill.sprite = game.sprites.wordKill; return wordKill; } |