Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson6_diy2
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
e8724aa2
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
19fae612
c97682l1384p256a14205/wx990314
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
my_music.py
my_music.py
View file @
e8724aa2
...
...
@@ -18,6 +18,7 @@ num = -1
abcd
=
1
xx
=
0
yy
=
0
FPS
=
pygame
.
time
.
Clock
()
for
i
in
filelist
:
if
i
[
-
4
:]
==
".wav"
or
i
[
-
4
:]
==
".ogg"
:
music_list
.
append
(
i
)
...
...
@@ -83,10 +84,8 @@ while True:
new_logo
=
pygame
.
transform
.
rotate
(
logo_img
,
abcd
)
aaaaa
=
new_logo
.
get_rect
(
center
=
(
320
,
200
))
pos
=
(
aaaaa
[
0
],
aaaaa
[
1
])
if
num
==
0
:
if
play_button
==
stop_img
:
abcd
+=
1
else
:
abcd
=
0
# 绘制画面
screen
.
blit
(
bg_img
,
(
0
,
0
))
# 填充背景
screen
.
blit
(
play_button
,
(
270
,
330
))
# 暂停按钮
...
...
@@ -95,3 +94,4 @@ while True:
screen
.
blit
(
new_logo
,
(
pos
))
# 中间logo图
# 刷新画面
pygame
.
display
.
update
()
FPS
.
tick
(
60
)
\ 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