diff options
Diffstat (limited to 'src/game.js')
-rw-r--r-- | src/game.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.js b/src/game.js index c1b9c05..cd82cc0 100644 --- a/src/game.js +++ b/src/game.js @@ -11,5 +11,10 @@ game.initialize = () => { game.bigBlue2 = game.createBigBlue(); game.bigBlue2.components.position = game.components.Position({x: 200, y: 100}); game.entities[game.bigBlue2.id] = game.bigBlue2; + + game.rock = game.createRock(); + game.rock.components.position = game.components.Position({x: 200, y: 200}); + game.entities[game.rock.id] = game.rock; + requestAnimationFrame(game.loop); } |