You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

games devlopment 363 B

1234567891011121314151617181920
  1. import pygame
  2. pygame.init()
  3. screen = pygame.display.set_mode((640, 480))
  4. clock = pygame.time.Clock()
  5. while True:
  6. for event in pygame.event.get():
  7. if event.type == pygame.QUIT:
  8. pygame.quit()
  9. sys.exit()
  10. # Update game state
  11. screen.fill((0, 0, 0))
  12. # Draw game objects
  13. pygame.display.flip()
  14. clock.tick(60)