Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson7_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
5aaa10f4
authored
Apr 17, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
56bb5691
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
helloworld.py
my_game.py
helloworld.py
0 → 100644
View file @
5aaa10f4
print
(
"Hello world"
)
\ No newline at end of file
my_game.py
View file @
5aaa10f4
...
@@ -56,7 +56,7 @@ while True:
...
@@ -56,7 +56,7 @@ while True:
if
index
>=
4
:
if
index
>=
4
:
index
=
0
index
=
0
if
rest
.
x
<
0
-
rest
.
width
:
if
rest
.
x
<
0
-
rest
.
width
:
zhangai
=
random
.
choice
([
stone
,
apple
,
cacti
])
zhangai
=
random
.
choice
([
stone
,
apple
,
cacti
])
rest
=
zhangai
.
get_rect
()
rest
=
zhangai
.
get_rect
()
rest
.
x
=
1000
rest
.
x
=
1000
rest
.
y
=
500
-
rest
.
height
rest
.
y
=
500
-
rest
.
height
...
...
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