Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson6_diy3
This project
Loading...
Sign in
Toggle navigation
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
842511a4
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3c9dea1f
c283523l1384p473a14206/cloud183670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
my_music.py
my_music.py
View file @
842511a4
...
@@ -91,7 +91,7 @@ while True:
...
@@ -91,7 +91,7 @@ while True:
n_r
=
n_l
.
get_rect
(
center
=
(
320
,
200
))
n_r
=
n_l
.
get_rect
(
center
=
(
320
,
200
))
pos
=
(
n_r
[
0
],
n_r
[
1
])
pos
=
(
n_r
[
0
],
n_r
[
1
])
if
play_button
==
stop_img
:
if
play_button
==
stop_img
:
ang
+=
1
ang
+=
0.5
pt
=
pygame
.
mixer
.
music
.
get_pos
()
pt
=
pygame
.
mixer
.
music
.
get_pos
()
pt
=
int
(
pt
/
1000
)
pt
=
int
(
pt
/
1000
)
pm
=
pt
//
60
pm
=
pt
//
60
...
@@ -104,7 +104,7 @@ while True:
...
@@ -104,7 +104,7 @@ while True:
screen
.
blit
(
n_l
,
pos
)
# 中间logo图
screen
.
blit
(
n_l
,
pos
)
# 中间logo图
screen
.
blit
(
last_img
,
(
120
,
350
))
# 上一曲
screen
.
blit
(
last_img
,
(
120
,
350
))
# 上一曲
screen
.
blit
(
next_img
,
(
420
,
350
))
# 下一曲
screen
.
blit
(
next_img
,
(
420
,
350
))
# 下一曲
t
=
a
.
render
(
info
,
True
,(
255
,
255
,
255
))
t
=
a
.
render
(
info
,
True
,(
1
,
1
,
255
))
screen
.
blit
(
t
,(
120
,
440
))
screen
.
blit
(
t
,(
120
,
440
))
# 刷新画面
# 刷新画面
pygame
.
display
.
update
()
pygame
.
display
.
update
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment