Commit c3104fb3 by BellCodeEditor

save project

parent ab224167
Showing with 14 additions and 2 deletions
......@@ -5,8 +5,20 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
left=pygame.image.load("left.png")
up=pygame.image.load("up.png")
down=pygame.image.load("down.png")
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
sreen.blit(background,(0,0))
sreen.blit(right,(240,120))
sreen.blit(boby,(210,120))
sreen.blit(boby,(210,150))
sreen.blit(boby,(240,150))
sreen.blit(food,(120,270))
\ 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