Commit 86db51c4 by BellCodeEditor

save project

parent 8a4b6dff
Showing with 14 additions and 0 deletions
......@@ -5,9 +5,22 @@ pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660,480),0,32)
backgroung=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
while True:
events = pygame.event.get()
for e in events:
if e.type == locals.QUIT:
exit()
screen.blit(backgroung,(0,0))
screen.blit(right,(60,120))
screen.blit(body,(30,120))
screen.blit(body,(0,120))
screen.blit(body,(0,90))
screen.blit(food,(120,300))
pygame.display.update()
\ 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