I ate 150 mg edibleTutorial: Race game — Coding Games With Pygame Zero & Python documentation. 9. Tutorial: Race game. . In this chapter we will build a racing game together, step by step. The Python we will use is: conditionals, loops, lists, functions and tuples. We will show use of velocity, high score and a title screen. 9.1.Rachel voyance avisSince the movement of mouse in the monitor is 2D, the first step is to calculate the mouse movement in the x-axis and y-axis directions. pygame allows to record the 2D location of the mouse. The delta between the current location and the previous location gives dx and dy, which indicates the horizontal and vertical directions of movement: