Commit bf029c0f by BellCodeEditor

save project

parent e3b68248
Showing with 10 additions and 4 deletions
...@@ -13,14 +13,19 @@ background6 = pygame.image.load("right.png") ...@@ -13,14 +13,19 @@ background6 = pygame.image.load("right.png")
background7 = pygame.image.load("up.png") background7 = pygame.image.load("up.png")
# 创建一个窗口 # 创建一个窗口
chuangkou = pygame.display.set_mode((800,600)) chuangkou = pygame.display.set_mode((800,600))
FPSCLOCK = pygame.time.Clock()
x,y = 240,120
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
x+=0.5
chuangkou.blit(background1,(0,0)) chuangkou.blit(background1,(0,0))
chuangkou.blit(background6,(240,120)) chuangkou.blit(background6,(x,y))
chuangkou.blit(background3,(210,120)) chuangkou.blit(background3,(x-30,120))
chuangkou.blit(background3,(180,120)) chuangkou.blit(background3,(x-60,120))
chuangkou.blit(background3,(150,120)) chuangkou.blit(background3,(x-90,120))
chuangkou.blit(background2,(300,330)) chuangkou.blit(background2,(300,330))
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(60)
\ 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