Commit 91364c36 by BellCodeEditor

save project

parent 2cdb88bc
Showing with 4 additions and 4 deletions
...@@ -86,10 +86,10 @@ while True: ...@@ -86,10 +86,10 @@ while True:
screen.blit(road,(road_x, 500)) # 悟空 screen.blit(road,(road_x, 500)) # 悟空
if aa.rect.x <= 0-aa.rect.width: # 障碍物消失 if aa.rect.x <= 0-aa.rect.width: # 障碍物消失
obstacle=random.choice([bush,cacti,stone]) obstacle=random.choice([bush,cacti,stone])
rect = obstacle.get_rect() rect = obstacle.get_rect()
rect.x = 1000 rect.x = 1000
rect.y = 500 - rect.heiget rect.y = 500 - rect.heiget
# 创建障碍物对象 # 创建障碍物对象
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
......
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