ソースを参照
Create games devlopment
pull/3448/head
180pulok
1年前
committed by
GitHub
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
-
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) |