diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-12 22:22:33 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-12 22:22:33 -0600 |
commit | 27fa6357a699771ade4ed5bf8c3fb32d7e73f4d4 (patch) | |
tree | 10e5eb62dc2bfcdf26ced2bfc45f7645408c5307 /src/systems/grid.js | |
parent | cdb258991cc6ba8d4219038d9580e64d5e416803 (diff) | |
download | bbiy-27fa6357a699771ade4ed5bf8c3fb32d7e73f4d4.tar.gz bbiy-27fa6357a699771ade4ed5bf8c3fb32d7e73f4d4.zip |
Add menuing system with level select and control changing
Diffstat (limited to 'src/systems/grid.js')
-rw-r--r-- | src/systems/grid.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systems/grid.js b/src/systems/grid.js index 3e56ea9..6add388 100644 --- a/src/systems/grid.js +++ b/src/systems/grid.js @@ -26,7 +26,9 @@ game.system.Grid = (entitiesGrid) => { } })); changedIds.forEach(id => { - const entity = entities[id]; + // TODO: Figure out why we HAVE to use game.entities rather than entities + // Hint: it breaks when changing a level in the menu + const entity = game.entities[id]; const { x, y } = entity.components.gridPosition; entitiesGrid[y][x].set(entity.id, entity); }); |