Commit bb16669b by BellCodeEditor

save project

parent 5581859d
Showing with 5 additions and 1 deletions
...@@ -14,7 +14,11 @@ logo_img = pygame.image.load('logo.png') # 中间logo ...@@ -14,7 +14,11 @@ logo_img = pygame.image.load('logo.png') # 中间logo
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if type== if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type == locals.KEYDOWN:
if
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 0)) # 填充背景
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment