Commit 6b8bb1a1 by BellCodeEditor

save project

parent 2742489a
Showing with 6 additions and 0 deletions
......@@ -25,12 +25,14 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
bg_x
lu_x=0
shan_x=0
index = 0
y = 400
jumpState = "runing"
t = 30
aa=Block(bush,cacti,stone)
while True:
......@@ -63,6 +65,10 @@ while True:
index += 1
if index >= 5:
index = 0
bg_x-=1
if bg_x<=-1000:
bg_x = 0
screen.blit(road
# 将背景图画上去
shan_x -=2
if shan_x <-1000:
......
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