From cf4dbf91ddb980c051ee2905367143d433c376a5 Mon Sep 17 00:00:00 2001 From: phat_sumo Date: Sat, 2 Apr 2022 18:48:00 -0600 Subject: the mess that is pushable --- src/game.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game.js') diff --git a/src/game.js b/src/game.js index 04aa4fc..07ea67b 100644 --- a/src/game.js +++ b/src/game.js @@ -29,6 +29,7 @@ game.initialize = () => { Array(400).fill(null).forEach((_, i) => { const bigBlue = game.createBigBlue(); bigBlue.addComponent(game.components.GridPosition({x: Math.floor(Math.random() * 15), y: Math.floor(Math.random() * 13)})); + bigBlue.addComponent(game.components.Pushable()); game.entities[bigBlue.id] = bigBlue; }); @@ -36,6 +37,7 @@ game.initialize = () => { game.rock.addComponent(game.components.Position({x: 200, y: 200})); game.rock.addComponent(game.components.GridPosition({x: 0, y: 0})); game.rock.addComponent(game.components.Controllable({controls: ['left', 'right', 'up', 'down']})); + game.rock.addComponent(game.components.Pushable()); game.entities[game.rock.id] = game.rock; lastTimeStamp = performance.now() -- cgit v1.2.3-70-g09d2