(*surfacencoords: tuple)
| 3 | |
| 4 | # fade multiple surfaces on the screen |
| 5 | def fade(*surfacencoords: tuple): |
| 6 | for alpha in range(0, 257, 6): |
| 7 | for snc in surfacencoords: |
| 8 | surface, coordinates = snc |
| 9 | surface.set_alpha(alpha) |
| 10 | screen.blit(surface, coordinates) |
| 11 | pygame.time.delay(30) |
| 12 | pygame.display.flip() |
| 13 | |
| 14 | # board initialisations |
| 15 | game_board = Board() |