Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson8_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
f24e01a4
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d6aa1eaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
my_game.py
my_game.py
View file @
f24e01a4
...
@@ -37,7 +37,7 @@ shan_x=0
...
@@ -37,7 +37,7 @@ shan_x=0
index
=
0
index
=
0
y
=
400
y
=
400
jumpState
=
"runing"
jumpState
=
"runing"
t
=
3
0
t
=
4
0
road_x
=
0
road_x
=
0
_list
=
pygame
.
sprite
.
Group
()
_list
=
pygame
.
sprite
.
Group
()
time
=
0
time
=
0
...
@@ -65,13 +65,13 @@ while True:
...
@@ -65,13 +65,13 @@ while True:
else
:
else
:
jumpState
=
"down"
jumpState
=
"down"
if
jumpState
==
"down"
:
# 降落状态
if
jumpState
==
"down"
:
# 降落状态
if
t
<=
3
0
:
if
t
<=
4
0
:
y
+=
t
y
+=
t
wukong
.
rect
.
y
=
y
wukong
.
rect
.
y
=
y
t
+=
2
t
+=
2
else
:
else
:
jumpState
=
"runing"
jumpState
=
"runing"
t
=
3
0
t
=
4
0
# 悟空造型
# 悟空造型
...
...
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