Commit 322c5cad by BellCodeEditor

save project

parent 50dce9d8
Showing with 5 additions and 1 deletions
...@@ -4,7 +4,7 @@ from pygame import locals ...@@ -4,7 +4,7 @@ from pygame import locals
pygame.init() pygame.init()
backgroud = pygame.image.load('bg.png') backgroud = pygame.image.load('bg.png')
right = pygame.image.load('apple.png') right = pygame.image.load('apple.png')
apple = pygame.image.load('right.png') apple = pygame.image.load('up.png')
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
while True: while True:
...@@ -12,6 +12,10 @@ while True: ...@@ -12,6 +12,10 @@ while True:
# print(event) # print(event)
if event.type==locals.QUIT: if event.type==locals.QUIT:
print("菜就多练") print("菜就多练")
print("菜就多练")
print("菜就多练")
print("菜就多练")
print("菜就多练")
exit() exit()
screen.blit(backgroud,(0,0)) screen.blit(backgroud,(0,0))
screen.blit(apple,(360,300)) screen.blit(apple,(360,300))
......
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