Commit 1b2920e9 by BellCodeEditor

auto save

parent dd1bd841
Showing with 4 additions and 5 deletions
......@@ -5,15 +5,14 @@ pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((790, 600))
background=pygame.image.load("bg.png")
apple = pygame.image.load("apple.png")
right=pygame.image.load("right.png")
food = pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(apple,(0,0))
screen.blit(apple,(760,0))
screen.blit(apple,(0,570))
screen.blit(apple,(760,570))
screen.blit(right,(240,120))
screen.blit(food,(360,300))
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