diff options
-rw-r--r-- | js/game-frame/game.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |