Commit 6846ad44 by BellCodeEditor

save project

parent fd4d9375
Showing with 4 additions and 4 deletions
...@@ -23,9 +23,9 @@ y=400 ...@@ -23,9 +23,9 @@ y=400
t=30 t=30
jumpState="runing" jumpState="runing"
obstacle=random.choice([bush,stone,cacti]) obstacle=random.choice([bush,stone,cacti])
rect=obstacle.get_rect() rect=obstacle.get_rect()
rect.x=1000 rect.x=1000
rect.y=500-rect.height rect.y=500-rect.height
while True: while True:
...@@ -73,7 +73,7 @@ while True: ...@@ -73,7 +73,7 @@ while True:
rect.x=1000 rect.x=1000
rect.y=500-rect.height rect.y=500-rect.height
rect.x-=8 rect.x-=8
screen.blit(rect, (rect.x,rect.y)) screen.blit(rect,(rect.x,rect.y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
......
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