From aad68d877531ebdfb117a90c77ea7e538d858f2a Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 5 Jul 2024 23:25:23 -0500 Subject: implement resource collection --- render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render.js') 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]); } -- cgit v1.2.1