From 94f7cf7401309e955506c39362ddb844a6bb4427 Mon Sep 17 00:00:00 2001 From: 180pulok <126285446+180pulok@users.noreply.github.com> Date: Sun, 26 Feb 2023 12:03:57 +0600 Subject: [PATCH] Create games devlopment --- games devlopment | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 games devlopment diff --git a/games devlopment b/games devlopment new file mode 100644 index 00000000..38e30fd4 --- /dev/null +++ b/games devlopment @@ -0,0 +1,20 @@ +import pygame + +pygame.init() + +screen = pygame.display.set_mode((640, 480)) +clock = pygame.time.Clock() + +while True: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + pygame.quit() + sys.exit() + + # Update game state + + screen.fill((0, 0, 0)) + # Draw game objects + + pygame.display.flip() + clock.tick(60)