summaryrefslogtreecommitdiff
path: root/src/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.js')
-rw-r--r--src/game.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game.js b/src/game.js
index 7301f73..69a91ce 100644
--- a/src/game.js
+++ b/src/game.js
@@ -29,14 +29,13 @@ game.initialize = () => {
Array(10).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());
+ bigBlue.addComponent(game.components.Controllable({controls: ['left', 'right', 'up', 'down']}));
game.entities[bigBlue.id] = bigBlue;
});
game.rock = game.createRock();
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;