Code skill Adding Gravity

Code a processGravity function to make the player fall to the floor below. Use an if statement to make sure the player does not fall below the top of the platform.

See the Pen GB6 M4 by Walker Books UK (@walkerbooks) on CodePen.