PyGame does all its drawing onto rectangular surfaces. After initializing PyGameat line 5, we create a window holding our main surface. The main loop of the gameextends from line 15 to 30, with the following key bits of logic:
PyGame does all its drawing onto rectangular surfaces. After initializing PyGameat line 5, we create a window holding our main surface. The main loop of the gameextends from line 15 to 30, with the following key bits of logic: