Commit 00c93973 by BellCodeEditor

save project

parent 729af107
Showing with 13 additions and 1 deletions
......@@ -4,9 +4,21 @@ from pygame import locals
pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((1000,900))
screen=pygame.display.set_mode((500,400))
od= pygame.image.load ('bg.png')
app= pygame.image.load('apple.png')
bo= pygame.image.load('body.png')
do= pygame.image.load('down.png')
le= pygame.image.load('left.png')
while True:
pygame.display.update()
for event in pygame.event.get():
print(event.type)
if event.type == locals.QUIT:
exit()
screen.blit(od,(0,0))
screen.blit(app,(9,8))
screen.blit(bo,(50,10))
screen.blit(do,(70,10))
screen.blit(le,(80,10))
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