summaryrefslogtreecommitdiff
path: root/src/game.js
diff options
context:
space:
mode:
authorphat_sumo <ethanjpayne1@gmail.com>2022-04-01 17:49:20 -0600
committerphat_sumo <ethanjpayne1@gmail.com>2022-04-01 17:49:20 -0600
commit4d34b0b4b890e957030fbf6e3c8e1d4a02d2a627 (patch)
treeaa3e8c04b98ca8a950f9ecc4556b5413b9f0ae9d /src/game.js
parentd5750294b1169e85cc1171aa85b2ea522656d8b2 (diff)
downloadbbiy-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.js5
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);
}