Commit a44fbc78 by BellCodeEditor

save project

parent 200132da
Showing with 6 additions and 0 deletions
...@@ -12,6 +12,8 @@ Next = pygame.image.load("next.png") ...@@ -12,6 +12,8 @@ Next = pygame.image.load("next.png")
Play = pygame.image.load("play.png") Play = pygame.image.load("play.png")
Stop = pygame.image.load("stop.png") Stop = pygame.image.load("stop.png")
pygame.mixer.music.load("test.wav")
Font = pygame.font.Font("neuropol.ttf",20) Font = pygame.font.Font("neuropol.ttf",20)
FPS = pygame.time.Clock() FPS = pygame.time.Clock()
...@@ -28,5 +30,8 @@ while True: ...@@ -28,5 +30,8 @@ while True:
screen.blit(Last,(120,350)) screen.blit(Last,(120,350))
screen.blit(Next,(420,350)) screen.blit(Next,(420,350))
if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play()
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
\ No newline at end of file
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