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