Commit 28eda163 by BellCodeEditor

save project

parent eaaf407a
Showing with 4 additions and 2 deletions
......@@ -7,7 +7,8 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
food=pygame.image.load("apple.png")
snake=pygame.image.load("right.png")
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -15,7 +16,8 @@ while True:
screen.blit(background,(0,0))
screen.blit(food,(360,240))
screen.blit(snake,(,))
screen.blit(snake,(210,120))
pygame.display.update()
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