Commit 9ad2bc65 by BellCodeEditor

save project

parent 296b352b
Showing with 17 additions and 0 deletions
...@@ -5,4 +5,20 @@ pygame.init() ...@@ -5,4 +5,20 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display set_mode((600,480),0,32) screen = pygame.display set_mode((600,480),0,32)
ackground=pygame.image.load('bg.png')
right=pygbame.image.load('right.png')
food=pygame.image.load('apple.png')
body=pygame.image.load('body.png')
x,y=240,120
positing=[(180,90),(180,120),(210,120),(x,y)]
positing="right"
snake)_head=right
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
if event.type
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment