
Adding the Player
Use an object literal to create the player and give their location in the world and their size. Use the draw function to draw them on-screen as a green square.
See the Pen GB4 M4 by Walker Books UK (@walkerbooks) on CodePen.