From 9f8a386b07f0e4f6a7ad297dfed4264e18d358db Mon Sep 17 00:00:00 2001 From: elioat Date: Fri, 29 Dec 2023 15:42:58 -0500 Subject: * --- js/game-frame/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/game-frame') diff --git a/js/game-frame/game.js b/js/game-frame/game.js index eed3863..e64bfa7 100644 --- a/js/game-frame/game.js +++ b/js/game-frame/game.js @@ -214,7 +214,7 @@ function gameLoop() { // Draw items and check for collisions items.forEach(item => { ctx.fillStyle = item.color; - ctx.fillRect(item.x - camera.x, item.y - camera.y, 8, 8); + ctx.fillRect(item.x - camera.x, item.y - camera.y, player.width, player.height); }); for (let i = 0; i < items.length; i++) { if (player.x === items[i].x && player.y === items[i].y) { -- cgit 1.4.1-2-gfad0