Commit c2fa899b by BellCodeEditor

auto save

parent f073f570
Showing with 4 additions and 4 deletions
...@@ -4,15 +4,15 @@ import pygame ...@@ -4,15 +4,15 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗 # 创建一个窗
scrern=pygame.diplay.set_mode((660,480)) scrern=pygame.display.set_mode((660,480))
a=pygame.image.load('bg.png') a=pygame.image.load('bg.png')
b=pygame.image.load('left.png') b=pygame.image.load('left.png')
c=pygame.image.load('apple.png') c=pygame.image.load('apple.png')
while True: while True:
for event in pyame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT(): if event.type==locals.QUIT():
exit() exit()
scrern.blit(a,(0,0)) scrern.blit(a,(0,0))
scrern.blit(a,(240,180)) scrern.blit(a,(240,180))
scrern.blit(a,(150,30)) scrern.blit(a,(150,30))
pygame.dispiay.update() pygame.display.update()
\ No newline at end of file \ 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