Przeglądaj źródła

Create games devlopment

pull/3448/head
180pulok 1 rok temu
committed by GitHub
rodzic
commit
94f7cf7401
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 20 dodań i 0 usunięć
  1. +20
    -0
      games devlopment

+ 20
- 0
games devlopment Wyświetl plik

@@ -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)

Ładowanie…
Anuluj
Zapisz