Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson6_diy4
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
5b88200d
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c22b8b69
c63796l1384p256a14207/wx972641
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
my_music.py
my_music.py
View file @
5b88200d
...
...
@@ -96,7 +96,9 @@ while True:
play_m
=
play_time
//
60
play_s
=
play_time
%
60
info
=
str
(
play_m
)
+
":"
+
str
(
play_s
)
music_m
=
music_length
//
60
music_s
=
music_length
%
60
info2
=
str
(
music_m
)
+
":"
+
str
(
music_s
)
new_logo
=
pygame
.
transform
.
rotate
(
logo_img
,
angle
)
newRent
=
new_logo
.
get_rect
(
center
=
(
320
,
200
))
...
...
@@ -110,8 +112,12 @@ while True:
screen
.
blit
(
play_button
,
(
270
,
330
))
screen
.
blit
(
new_logo
,
pos
)
screen
.
blit
(
last_img
,
(
120
,
350
))
screen
.
blit
(
next_img
,
(
420
,
350
))
screen
.
blit
(
next_img
,
(
420
,
350
))
scoreSurf
=
basic_font
.
render
(
info
,
True
,(
255
,
255
,
255
))
screen
.
blit
(
scoreSurf
,(
120
,
440
))
scoreSurf2
=
basic_font
.
render
(
"/"
+
info2
,
True
,(
0
,
0
,
0
))
screen
.
blit
(
scoreSurf2
,(
170
,
440
))
pygame
.
display
.
update
()
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