summaryrefslogtreecommitdiff
path: root/render.js
diff options
context:
space:
mode:
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]);
}