summaryrefslogtreecommitdiff
path: root/render.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-05 23:25:23 -0500
committersanine <sanine.not@pm.me>2024-07-05 23:25:23 -0500
commitaad68d877531ebdfb117a90c77ea7e538d858f2a (patch)
treed49e644cddea73ea10bb944390f73690b1b6d824 /render.js
parent7e2cc59135c1bc0036c4a3a9c91defef274f005e (diff)
implement resource collection
Diffstat (limited to 'render.js')
-rw-r--r--render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.js b/render.js
index 6adca2c..be3bc8e 100644
--- a/render.js
+++ b/render.js
@@ -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]);
}