Commit bf029c0f by BellCodeEditor

save project

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