xxxxxxxxxx
gravity = 0.3
function draw() {
background(backColor)
draw2()
screenSize=findScreenSize() // Calculate the screen size and store it in a varible
screen(screenSize) // Update the screen with screenSize
calcScore() // This function draws the points on screen and calculates the score
runBoosters() // Draw the boosters and calcultate if the player is touching them
drawGround()
player.controls() // Allows the user to control the ball which changes the velocities
player.updateForces() // The normal force and gravity will be calculated and then added to the velocities
player.updatePos() // The x and y coordinates will be changed by their velocities
player.draw() // Draw the player onto the screen at the x and y coordinates'
isGameOver(player.normalForceY)
}