Commit fcec3868 by BellCodeEditor

save project

parent 518b558c
Showing with 3 additions and 0 deletions
...@@ -25,6 +25,7 @@ hero = [pygame.image.load('hero1.png'), ...@@ -25,6 +25,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'), pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
lu_x=0 lu_x=0
shan_x=0 shan_x=0
index = 0 index = 0
...@@ -32,6 +33,8 @@ y = 400 ...@@ -32,6 +33,8 @@ y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
#创建障碍物
obstacle=Block(bush,cacti,stone)
# —————————————————————————————————————————————— # ——————————————————————————————————————————————
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
......
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