Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson1_4
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
5acdf2e9
authored
Jan 06, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bdc1e8f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
snake.py
snake.py
View file @
5acdf2e9
...
@@ -9,16 +9,17 @@ while True:
...
@@ -9,16 +9,17 @@ while True:
for
event
in
pygame
.
event
.
get
():
for
event
in
pygame
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
if
event
.
type
==
locals
.
QUIT
:
exit
()
exit
()
b
=
pygame
.
image
load
(
'dog.png'
)
z
=
pygame
.
image
load
(
'dog.png'
)
p
=
pygame
.
image
load
(
'dog.png'
)
f
=
pygame
.
image
load
(
'dog.png'
)
dog
.
bitt
(
b
,(
0
,
0
))
dog
.
bitt
(
z
,(
240
,
120
))
dog
.
bitt
(
p
,(
210
,
120
))
dog
.
bitt
(
p
,(
180
,
120
))
dog
.
bitt
(
p
,(
180
,
90
))
dog
.
bitt
(
f
,(
360
,
300
))
pygame
.
display
.
update
()
...
...
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