Commit 321a3018 by BellCodeEditor

auto save

parent 7513110f
Showing with 8 additions and 0 deletions
...@@ -24,6 +24,7 @@ volume = 0.2 ...@@ -24,6 +24,7 @@ volume = 0.2
pygame.mixer.music.set_volume(volume) pygame.mixer.music.set_volume(volume)
click = 0 click = 0
play_button = stop_img play_button = stop_img
my_font=pygamw.font.Font("neurpol.ttf",15)
angle = 0 angle = 0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -88,6 +89,13 @@ while True: ...@@ -88,6 +89,13 @@ while True:
pos=(newRect[0],newRect[1]) pos=(newRect[0],newRect[1])
if play_button==stop_img: if play_button==stop_img:
angle += 1 angle += 1
ae=pygame.mixer.music.get_pos()
ae=int(ae/1000)
aem=ae//60
aes=ae%60
info=str(aem)+":"+str(aes)
text=my_font.render(info,True,(0,0,0))
screen.blit(text,(120,300))
screen.blit(bg_img, (0, 0)) screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330)) screen.blit(play_button, (270, 330))
screen.blit(logo_img, pos) screen.blit(logo_img, pos)
......
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