pygame write tutorial code example
Example 1: pygame tutorial
import pygame
pygame.init()
Example 2: pygame tutorial
crashed = False
while not crashed:
for event in pygame.event.get():
if event.type == pygame.QUIT:
crashed = True
print(event)
pygame.display.update()
clock.tick(60)