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

Administrator / pygame_lesson5_diy5

  • 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 898df2ad authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 3a777ea7
Show whitespace changes
Inline Side-by-side
Showing with 4 additions and 0 deletions
  • my_music.py
my_music.py
View file @ 898df2ad
......@@ -14,6 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = []
angle = 0
FPS = pygame.time.Clock()
path = "C:\\Users\\students\\Desktop\\abc"
filelist = os.listdir(path)
for i in filelist:
......@@ -90,6 +91,8 @@ while True:
newRect = new_logo.get_rect(center=(320,200))
pos = (newRect[0],newRect[1])
angle += 1
if play_button == play_img:
angle -= 1
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......@@ -98,4 +101,5 @@ while True:
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
FPS.tick(60)
pygame.display.update()
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