Commit bc27db5a by BellCodeEditor

save project

parent 5428ef5a
Showing with 12 additions and 10 deletions
if rect.x <= 0-rect.with:
odstacle = random choice
rect = odstacle.get_rect()
rect.x = 1000
rect.x = 8
screen.hlit
pygame.display.update()
FPS.tick(30)
......@@ -18,16 +18,6 @@ index = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(hero, (150, 400))
# 刷新画面
pygame.display.update()
FPS.tick(60)
......
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