Commit cead6738 by BellCodeEditor

save project

parent b4a181db
Showing with 6 additions and 2 deletions
......@@ -19,7 +19,7 @@ volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
play_button = stop_img
n=
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -41,7 +41,11 @@ while True:
if event.type == locals.MOUSEBUTTONDOWN:
if event.button == 1:
x,y = event.pos
if x > 270 and x <370 and y > 350 and y < 450:
if x > 120 and x < 220 and y > 350 and y < 400:
n-=1
pygame.mixer.music.unpause
play_button = stop_img
if x > 270 and x < 370 and y > 350 and y < 450:
# 次数增加
click += 1
if click % 2 == 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