HTML5 Canvas and Javascript game inspired by older GameBoy Pokemon games
/* for (let i = 0; i <= boundries.length; i++){ const boundary = boundries[i] if (rectangularCollision({ rectangle1: player, rectangle2: {...boundary, position: { x: boundary.position.x, y: boundary.position.y + 3} } })) // end of if condition (function rectangleCollision) { // start of if statement moving = false // setting the movement to false to disable moving everytime collision is detected break } // end of if statement } if (moving == true){ moveables.forEach((moveable) => { moveable.position.y += 3}) } // end of checking moving statement */