Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson6_diy3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 9bc08fb9 authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent a8e136b2
Hide whitespace changes
Inline Side-by-side
Showing with 1 additions and 7 deletions
  • my_music.py
my_music.py
View file @ 9bc08fb9
......@@ -12,7 +12,6 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
font = pygame.font.SysFont('neuropol.ttf',50)
music_list = []
path = r"C:\Users\aki\Desktop"
......@@ -87,12 +86,7 @@ while True:
new_logo = pygame.transform.rotate(logo_img, angle)
new_rect = new_logo.get_rect(center = (320,200))
logo_x,logo_y = (new_rect[0],new_rect[1])
if play_button == stop_img:
angle += 1
play_time = (pygame.mixer.music.get_pos()//1000)
time_m = play_time//60
time_s = play_time%60
screen.
angle += 1
screen.blit(bg_img, (0, 0))
screen.blit(play_button, (270, 330))
screen.blit(new_logo, (logo_x, logo_y))
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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