Commit fea14027 by BellCodeEditor

save project

parent 53aedd75
Showing with 1 additions and 15 deletions
......@@ -37,8 +37,7 @@ rect.x = 1000
rect.y = 500 - rect.height
road_x=0
b_x=0
time=0
# obstacle = Block(bush,stone,cacti)
obstacle = Block(bush,stone,cacti)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -68,19 +67,6 @@ while True:
b_x-=6
if b_x<-1000:
b_x=0
time+=1
if time>=60:
r=random.randint(0,100)
if r>40:
obstacle=Block(bush,cacti,stone)
block_list.add(obstacle)
time=0
for prop in block_list:
prop.rect.x-=8
screen.blit(prop.image,(prop.rect.x,prop.rect.y))
if prop.rect.x<=0-prop.rect.width:
prop.kill()
# 悟空造型
......
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