diff options
Diffstat (limited to 'src/entities/grass.js')
-rw-r--r-- | src/entities/grass.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/grass.js b/src/entities/grass.js index f731ef1..7f26712 100644 --- a/src/entities/grass.js +++ b/src/entities/grass.js @@ -3,6 +3,6 @@ game.createGrass = () => { grass.addComponent(game.components.LoadPriority({priority: 6})); grass.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100})); grass.addComponent(game.components.Alive()); - grass.sprite = game.sprites.grass; + grass.addComponent(game.components.Sprite({spriteName: "grass"})) return grass; } |