Commit fbdcb24d by BellCodeEditor

save project

parent 1cb6c71c
Showing with 2 additions and 1 deletions
...@@ -19,9 +19,9 @@ hero = [pygame.image.load('hero1.png'), ...@@ -19,9 +19,9 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
index = 0 index = 0
jumpState = "runing"
y = 400 y = 400
t = 30 t = 30
jumpState = "runing"
obstacle = random.choice([bush,stone,cacti]) obstacle = random.choice([bush,stone,cacti])
rect = opstacle.get_rect() rect = opstacle.get_rect()
rect.x = 1000 rect.x = 1000
...@@ -54,6 +54,7 @@ while True: ...@@ -54,6 +54,7 @@ while True:
index=0 index=0
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
road_
screen.blit(road, (0, 500)) screen.blit(road, (0, 500))
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
......
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