Commit a154cbdb by BellCodeEditor

save project

parent 270d0580
Showing with 3 additions and 3 deletions
...@@ -30,18 +30,18 @@ while True: ...@@ -30,18 +30,18 @@ while True:
index+=1# 将背景图画上去 index+=1# 将背景图画上去
if index==5: if index==5:
index=0 index=0
if jump=="up": if j=="up":
if y>150: if y>150:
y-=5 y-=5
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
else: else:
j="down": j="down"
if j=="down": if j=="down":
if y<400: if y<400:
y+=5 y+=5
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
else: else:
jump="rinning": jump="rinning"
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
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