diff options
author | sanine <sanine.not@pm.me> | 2024-07-05 23:25:23 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2024-07-05 23:25:23 -0500 |
commit | aad68d877531ebdfb117a90c77ea7e538d858f2a (patch) | |
tree | d49e644cddea73ea10bb944390f73690b1b6d824 /render.js | |
parent | 7e2cc59135c1bc0036c4a3a9c91defef274f005e (diff) |
implement resource collection
Diffstat (limited to 'render.js')
-rw-r--r-- | render.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ export function render(ctx, level, index) { drawShip(ctx, [x0, y0], angle); level.resources .filter(({ collected }) => collected === false) - .forEach(({ pos }) => drawMark(ctx, '+', pos[0], pos[1])); + .forEach(({ position}) => drawMark(ctx, '+', position[0], position[1])); drawMark(ctx, '※', level.home[0], level.home[1]); } |