diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-18 21:07:55 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-18 21:07:55 -0600 |
commit | 9b597426ac45775f63b1fe4365c6fa8f3c3179af (patch) | |
tree | 0768f5aebcd9ef9f60824f389e1e197f32e4e578 /src/systems/grid.js | |
parent | 1cffeb5520e416893a93545dc4356365b762a1f7 (diff) | |
download | bbiy-9b597426ac45775f63b1fe4365c6fa8f3c3179af.tar.gz bbiy-9b597426ac45775f63b1fe4365c6fa8f3c3179af.zip |
Wow this is some shitty fucking code god damn
Diffstat (limited to 'src/systems/grid.js')
-rw-r--r-- | src/systems/grid.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systems/grid.js b/src/systems/grid.js index 6add388..6d4cf84 100644 --- a/src/systems/grid.js +++ b/src/systems/grid.js @@ -32,7 +32,7 @@ game.system.Grid = (entitiesGrid) => { const { x, y } = entity.components.gridPosition; entitiesGrid[y][x].set(entity.id, entity); }); - } + }; const update = (_elapsedTime, entities, changedIds) => { gridEntities = Object.keys(entities).filter((x) => entities[x].hasComponent("gridPosition")).map((x) => entities[x]); @@ -68,4 +68,4 @@ game.system.Grid = (entitiesGrid) => { return { gameCoordsToGrid, gridCoordsToGame, update, gridWidth, gridHeight }; -};
\ No newline at end of file +}; |