diff options
author | phat_sumo <ethanjpayne1@gmail.com> | 2022-04-01 17:49:20 -0600 |
---|---|---|
committer | phat_sumo <ethanjpayne1@gmail.com> | 2022-04-01 17:49:20 -0600 |
commit | 4d34b0b4b890e957030fbf6e3c8e1d4a02d2a627 (patch) | |
tree | aa3e8c04b98ca8a950f9ecc4556b5413b9f0ae9d /src/game.js | |
parent | d5750294b1169e85cc1171aa85b2ea522656d8b2 (diff) | |
download | bbiy-4d34b0b4b890e957030fbf6e3c8e1d4a02d2a627.tar.gz bbiy-4d34b0b4b890e957030fbf6e3c8e1d4a02d2a627.zip |
update bootstrap, fix flag.js filename, add rock
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); } |