Commit d2d347af by BellCodeEditor

save project

parent e8adc419
Showing with 11 additions and 2 deletions
......@@ -4,11 +4,20 @@ from pygame import locals
pygame.init()
# 创建一个窗口
pygame.display.set_mode((800,600))
a=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
apple=pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
exit()
a.blit(background,(0,0))
a.blit(right,(240,160))
a.blit(apple,(160,240))
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