diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-02 23:27:07 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-02 23:27:07 -0600 |
commit | bb75e40de92fb7e0589410b67e21087f27f34f45 (patch) | |
tree | 9c884185bd5feb9d505c4c0ca9a35b31ffb90696 /src/game.js | |
parent | cf4dbf91ddb980c051ee2905367143d433c376a5 (diff) | |
download | bbiy-bb75e40de92fb7e0589410b67e21087f27f34f45.tar.gz bbiy-bb75e40de92fb7e0589410b67e21087f27f34f45.zip |
Movement bug with two+ pushable entities
Diffstat (limited to 'src/game.js')
-rw-r--r-- | src/game.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.js b/src/game.js index 07ea67b..7301f73 100644 --- a/src/game.js +++ b/src/game.js @@ -26,7 +26,7 @@ game.initialize = () => { game.entities = {}; - Array(400).fill(null).forEach((_, i) => { + 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()); |