about summary refs log tree commit diff stats
path: root/js
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2023-12-29 15:42:58 -0500
committerelioat <hi@eli.li>2023-12-29 15:42:58 -0500
commit9f8a386b07f0e4f6a7ad297dfed4264e18d358db (patch)
treef6bbf4ba171d6920d93d7075aa52654dc57418e8 /js
parent1d8f185880be10636e731bbc6b215601da0b169a (diff)
downloadtour-9f8a386b07f0e4f6a7ad297dfed4264e18d358db.tar.gz
*
Diffstat (limited to 'js')
-rw-r--r--js/game-frame/game.js2
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) {