Commit 255a25dd by BellCodeEditor

save project

parent e8af6325
Showing with 3 additions and 2 deletions
......@@ -21,7 +21,7 @@ index = 0
jumpState="runing"
y=400
t=30
obstacle=random.choice([bushh,stone,cacti])
obstacle=random.choice([bush,stone,cacti])
rect=obstacle.get_rect()
rect.x=1000
rect.y=500-rect.height
......@@ -64,7 +64,7 @@ while True:
rect.x=1000
rect.y=500-rect.height
rect.x-=8
screen.blit(obstacale,(rect.x,rect.y))
screen.blit(obstcale,(rect.x,rect.y))
# 刷新画面
pygame.display.update()
FPS.tick(30)
\ No newline at end of file
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