Commit f9815319 by BellCodeEditor

auto save

parent ba2ed463
Showing with 5 additions and 4 deletions
......@@ -79,15 +79,16 @@ while True:
lu_x=0
screen.blit(road, (lu_x, 500)) # 路
screen.blit(wukong, (150, y)) # 悟空
aa=Block(bush,cacti,stone)
if q>30:
q=0
w=random.randint(0,50)
if w<=20:
s.add(aa)
# if w<=20:
#
# s.add(aa)
if aa.rect.x <= 0-aa.rect.width:
aa.kill() # 障碍物消失
aa=Block(bush,cacti,stone)
aa.rect.x -= 8
......
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