Commit d79349ee by BellCodeEditor

save project

parent a644ccd3
Showing with 5 additions and 5 deletions
...@@ -4,7 +4,7 @@ from pygame import locals ...@@ -4,7 +4,7 @@ from pygame import locals
pygame.init() pygame.init()
p=pygame.image.load("bg.png") p=pygame.image.load("bg.png")
pq=pygame.image.load("right.png") pq=pygame.image.load("right.png")
foot=pygame.image.load("apple.png") food=pygame.image.load("apple.png")
# 创建一个窗口 # 创建一个窗口
serrn=pygame.display.set_mode((800,600)) serrn=pygame.display.set_mode((800,600))
while True: while True:
...@@ -12,10 +12,10 @@ while True: ...@@ -12,10 +12,10 @@ while True:
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
serrn.blit(p,(0,0)) serrn.blit(p,(0,0))
serrn.blit(pq,(240,120)) serrn.blit(pq,(240,120))
serrn.blit(food,(360,300)) serrn.blit(food,(360,300))
pygame.display.urgate() pygame.display.update()
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