Commit f98520e6 by BellCodeEditor

save project

parent 971282fa
Showing with 4 additions and 3 deletions
...@@ -94,9 +94,9 @@ while True: ...@@ -94,9 +94,9 @@ while True:
for prop in block_list: for prop in block_list:
prop.rect.x -= 8 prop.rect.x -= 8
# ++++++++++++++++++++++ # ++++++++++++++++++++++
screen.blit(obstacle.image, (obstacle.rect.x, obstacle.rect.y)) screen.blit(prop.image, (prop.rect.x, prop.rect.y))
if prop.rect.x<=0-prop.rect.width: if prop.rect.x<=0-prop.rect.width:
prop.kill() prop.kill()
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
\ 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