Commit fde0a11b by BellCodeEditor

save project

parent e29c253a
Showing with 14 additions and 2 deletions
......@@ -5,8 +5,20 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
a=pygame.image.load("bg.png")
b=pygame.image.load("right.png")
c=pygame.image.load("body.png")
d=pygame.image.load("apple.png")
screen.blit(a,(0,0))
screen.blit(b,(240,180))
screen.blit(c,(210,180))
screen.blit(c,(180,180))
screen.blit(c,(150,180))
screen.blit(d,(360,300))
pygame.display.update()
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit
\ No newline at end of file
exit()
\ 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