瀏覽代碼
Create games devlopment
pull/3448/head
180pulok
1 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
20 次插入 和
0 次删除
-
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) |