180pulok
pirms 1 gada
committed by
GitHub
vecāks
revīzija
94f7cf7401
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar
20 papildinājumiem un
0 dzēšanām
-
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) |