Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson8_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
092a4744
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
68a842aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
my_game.py
my_game.py
View file @
092a4744
...
@@ -86,7 +86,6 @@ while True:
...
@@ -86,7 +86,6 @@ while True:
if
sprite
.
rect
.
x
<=
0
-
sprite
.
rect
.
width
:
# 障碍物消失
if
sprite
.
rect
.
x
<=
0
-
sprite
.
rect
.
width
:
# 障碍物消失
# 创建障碍物对象
# 创建障碍物对象
sprite
.
kill
()
sprite
.
kill
()
# 刷新画面
# 刷新画面
pygame
.
display
.
update
()
pygame
.
display
.
update
()
FPS
.
tick
(
30
)
FPS
.
tick
(
30
)
\ 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