diff options
author | sanine <sanine.not@pm.me> | 2023-11-12 15:18:29 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-12 15:18:29 -0600 |
commit | 7825b92ce3be95a0ce1dfea9388adbaadce83b1f (patch) | |
tree | eb1e38561e3aba4b890e666e04d46e4de499658e /src/simulation/senses.js | |
parent | 95fd952b6d4c496efc0e6236ba2acfcbbeee8ed9 (diff) |
fix bugs
Diffstat (limited to 'src/simulation/senses.js')
-rw-r--r-- | src/simulation/senses.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/senses.js b/src/simulation/senses.js index 9d50a83..970f86b 100644 --- a/src/simulation/senses.js +++ b/src/simulation/senses.js @@ -150,7 +150,7 @@ function see_agent(viewer, agent) { const see = { - size: VIS_WIDTH * VIS_HEIGHT, + size: 3*VIS_WIDTH * VIS_HEIGHT, read: (world, agent) => { const indices = [...Array(VIS_WIDTH*VIS_HEIGHT).keys()] const vision = indices @@ -171,12 +171,12 @@ const see = { }, vision ); - return result; + return result.flat(); }, }; export const senses = [ - frozen, hear, see, + frozen, hear, see, { size: 1, read: () => [1] }, ]; |