User manual
68
The seven points
P1 to P7mark in the graphic the midpoints of the dice. Each dot of a dice has a radius of 40
pixels. At 80 pixels center distance, 20 pixels remain between the dots of the dice and 20 pixels to the
window edges.
Fig. 8.2: The dots of the dice and their coordinates.
At this point, a variable that goes by the name mainloop is set to True along with the other variables which
we will need for the main loop of the game at a later stage.
mainloop = True We have created the basics, now we can start with the real game.
print “Press any key to roll the dice, [Esc]
exits the game”