Commit 32e87671 by BellCodeEditor

auto save

parent 1df60c7a
Showing with 1 additions and 1 deletions
...@@ -10,7 +10,6 @@ pygame.mixer.music.play() ...@@ -10,7 +10,6 @@ pygame.mixer.music.play()
if pygame.mixer.music.get_busy(): if pygame.mixer.music.get_busy():
pygame.mixer.music.play() pygame.mixer.music.play()
# 载入图片、资源 # 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图 bg_img = pygame.image.load('background.png') # 背景图
play_img = pygame.image.load('play.png') # 播放按钮 play_img = pygame.image.load('play.png') # 播放按钮
...@@ -23,6 +22,7 @@ while True: ...@@ -23,6 +22,7 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
if py
# 绘制画面 # 绘制画面
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