Commit 9e0ede6b by BellCodeEditor

auto save

parent 5719bd64
Showing with 2 additions and 1 deletions
......@@ -26,7 +26,7 @@ obstacle = random.choice([bush, stone, cacti])
rect = obstacle.get_rect()
rect.x = 1000
rect.y = 500 - rect.height
roadx=8
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -69,6 +69,7 @@ while True:
rect.x = 1000
rect.y = 500 - rect.height
rect.x -= 8
screen.blit(obstacle, (rect.x, rect.y))
# 刷新画面
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