Commit ad38ee6b by BellCodeEditor

save project

parent b8bab2e6
Showing with 15 additions and 7 deletions
tuplel = (100,200)
x,y,z = tuplel
print('x的值是:',x)
print('y的值是:',y)
\ No newline at end of file
......@@ -35,13 +35,16 @@ while True:
a =0
if event.type == locals.MOUSEBUTTONDOWN:
tick +=1
if tick % 2 == 1:
pygame.mixer.music.pause()
b = play_img
else:
pygame.mixer.music.unpause()
b= stop_img
if event.button == 1:
x,y = event.pos
if x > 270 and x < 370 and y > 330 and y < 430:
tick +=1
if tick % 2 == 1:
pygame.mixer.music.pause()
b = play_img
else:
pygame.mixer.music.unpause()
b= stop_img
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