Skip to content

Commit

Permalink
chore: remove console logs and unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Jun 3, 2024
1 parent a44f4d7 commit ee624a3
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 33 deletions.
6 changes: 0 additions & 6 deletions public/icons/plus.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/textures/C.svg

This file was deleted.

4 changes: 0 additions & 4 deletions public/textures/apricot.svg

This file was deleted.

Binary file removed public/textures/cherry.png
Binary file not shown.
4 changes: 0 additions & 4 deletions public/textures/cherry.svg

This file was deleted.

Binary file removed public/textures/watermelon.png
Binary file not shown.
4 changes: 0 additions & 4 deletions public/textures/watermelon.svg

This file was deleted.

12 changes: 0 additions & 12 deletions src/app/components/Fruits/Fruits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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 =
Expand Down

0 comments on commit ee624a3

Please sign in to comment.