Commit 3905317d by BellCodeEditor

save project

parent ce1d981b
Showing with 11 additions and 2 deletions
...@@ -5,10 +5,20 @@ pygame.init() ...@@ -5,10 +5,20 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screem=pygame.display.set_mode((660,480)) screem=pygame.display.set_mode((660,480))
bg = pygame.image.load('bg.png')
apple = pygame.image.load('apple.png')
right = pygame.image.load('right.png')
body = pygame.image.load('body.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event) print(event)
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
screem.blit(bg,(0,0))
screem.blit(apple,(120,120))
screem.blit(right,(60,60))
screem.blit(body,(30,60))
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