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