Commit c7a1154d by BellCodeEditor

auto save

parent 15c2aa62
Showing with 1 additions and 2 deletions
......@@ -3,8 +3,6 @@ from pygame import locals
pygame.init() # 初始化
# 创建窗口
volume = 0
pygame.mixer.music.set_volume(volume)
screen = pygame.display.set_mode((640, 480))
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
......@@ -18,6 +16,7 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if pygame.mixer.music.get_busy()== False:
pygame.mixer.music.play()
......
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