diff options
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]); } |