Commit 9ba33a81 by BellCodeEditor

auto save

parent 4978ba7d
Showing with 0 additions and 3 deletions
...@@ -14,7 +14,6 @@ logo_img = pygame.image.load('logo.png') # 中间logo ...@@ -14,7 +14,6 @@ logo_img = pygame.image.load('logo.png') # 中间logo
volume=0.8 volume=0.8
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
pygame.mixer.music.load('歌曲4.ogg') pygame.mixer.music.load('歌曲4.ogg')
click=0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
...@@ -30,8 +29,6 @@ while True: ...@@ -30,8 +29,6 @@ while True:
if volume<0: if volume<0:
volume=0 volume=0
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
if event.type==locals.MOUSEBUTTONDOWN:
click
if pygame.mixer.music.get_busy()==False: if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play() 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