Commit d7ec03d9 by BellCodeEditor

save project

parent 02be3d00
Showing with 0 additions and 14 deletions
......@@ -6,19 +6,7 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((630,600))
bg=pygame.image.load("bg.png")
rt=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
while True:
for event in pygame.event.get():
if event.type ==pygame.QUIT:
exit()
\ No newline at end of file
screen.blit(bg,(0,0))
screen.blit(rt,(300,150))
screen.blit(body,(270,150))
screen.blit(body,(240,150))
screen.blit(food,(450,150))
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