diff --git a/public/icons/plus.svg b/public/icons/plus.svg deleted file mode 100644 index 4bddfe0..0000000 --- a/public/icons/plus.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/public/textures/C.svg b/public/textures/C.svg deleted file mode 100644 index 4346d3f..0000000 --- a/public/textures/C.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/public/textures/apricot.svg b/public/textures/apricot.svg deleted file mode 100644 index ebe060e..0000000 --- a/public/textures/apricot.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/public/textures/cherry.png b/public/textures/cherry.png deleted file mode 100644 index 350c6c0..0000000 Binary files a/public/textures/cherry.png and /dev/null differ diff --git a/public/textures/cherry.svg b/public/textures/cherry.svg deleted file mode 100644 index 8f1a305..0000000 --- a/public/textures/cherry.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/public/textures/watermelon.png b/public/textures/watermelon.png deleted file mode 100644 index fe4e663..0000000 Binary files a/public/textures/watermelon.png and /dev/null differ diff --git a/public/textures/watermelon.svg b/public/textures/watermelon.svg deleted file mode 100644 index 4b9cb93..0000000 --- a/public/textures/watermelon.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/app/components/Fruits/Fruits.tsx b/src/app/components/Fruits/Fruits.tsx index f6775b0..66321a9 100644 --- a/src/app/components/Fruits/Fruits.tsx +++ b/src/app/components/Fruits/Fruits.tsx @@ -122,8 +122,6 @@ export default function Fruits() { const basketBottomDistance = basketBottomRatio * basketRect.width + 5; const basketHeightTest = basketRect.height; - console.log({ basketRect, padding }); - console.log(basketElement); const leftSlant = Bodies.rectangle( basketRect.left - navBarWidth, basketRect.top + basketHeightTest / 2, @@ -587,7 +585,6 @@ export default function Fruits() { if (canvas) { // Add a mouse click event listener to the canvas canvas.addEventListener('click', () => { - console.log('Clicked'); Composite.allBodies(engine.world).forEach(body => { // For each fruit if (body.isStatic) return; // Skip static bodies @@ -673,8 +670,6 @@ export default function Fruits() { const handleResize = () => { if (!scene.current) return; // Add null check - console.log('resizing!'); - let newWidth = scene.current?.clientWidth ?? 0; // Provide default value of 0 if undefined let newHeight = scene.current?.clientHeight ?? 0; // Provide default value of 0 if undefined @@ -687,8 +682,6 @@ export default function Fruits() { render.canvas.style.width = newWidth + 'px'; render.canvas.style.height = newHeight + 'px'; - console.log('Width:', newWidth, 'Height:', newHeight); - console.log(newWidth / 2, newHeight + barrierWidth / 2); Body.setPosition(ground, { x: newWidth / 2, y: newHeight + barrierWidth / 2 - 10 @@ -715,11 +708,6 @@ export default function Fruits() { y: newHeight * 0.75 }); - console.log( - ((newWidth - width) / width) * 10, - (newHeight - height) / height - ); - Body.scale(basket, newWidth / width, newHeight / height); if (basket.render.sprite) { basket.render.sprite.xScale =