Commit 090abd93 by BellCodeEditor

save project

parent 95314a95
Showing with 12 additions and 0 deletions
......@@ -6,8 +6,19 @@ pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660,480))
apple = pygame.image.load("apple.png")
right = pygame.image.load("right.png")
bg = pygame.image.load("bg.png")
body = pygame.image.load("body.png")
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(right,(0,0))
screen.blit(body,(0,0))
screen.blit(apple,(0,0))
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