Commit b1db64b0 by BellCodeEditor

auto save

parent 56c8ccd6
Showing with 5 additions and 7 deletions
...@@ -5,9 +5,8 @@ pygame.init() ...@@ -5,9 +5,8 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((800,600)) screen=pygame.display.set_mode((800,600))
backgrourd=pygame.image.load("bg.png") while True:
right=pygame.image.load("right.png") for event in pygame.event.get():
food=pygame.image.load("apple.png") print(event)
screen.blit(backgrourd,(0,0)) if event.type==locals.QUIT:
screen.blit(right,(240,120)) exit()
screen.blit(food,(360,300))
\ 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