Commit 51d9ac9d by BellCodeEditor

save project

parent c4944167
Showing with 8 additions and 7 deletions
......@@ -110,7 +110,7 @@ while True:
road_x = 0
screen.blit(road, (road_x, 500)) # 道路
screen.blit(wukong.image, (150, y)) # 悟空
screen.blit(wukong.image, (150, wukong.rect.y)) # 悟空
time += 1
if time >= 60: # 创建障碍物精灵
......@@ -139,12 +139,12 @@ while True:
scoreSurf=basic_font.render('分数:'+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,20))
scoreSurf1=basic_font.render('1st:'+str(o),True,(255,255,255))
screen.blit(scoreSurf,(880,50))
scoreSurf2=basic_font.render('2nd'+str(t),True,(255,255,255))
screen.blit(scoreSurf,(880,80))
scoreSurf3=basic_font.render('3rd'+str(th),True,(255,255,255))
screen.blit(scoreSurf,(880,110))
scoreSurf1=basic_font.render('1st'+str(o),True,(255,255,255))
screen.blit(scoreSurf1,(880,50))
scoreSurf2=basic_font.render('2nd'+str(t),True,(255,255,255))
screen.blit(scoreSurf2,(880,80))
scoreSurf3=basic_font.render('3rd'+str(th),True,(255,255,255))
screen.blit(scoreSurf3,(880,110))
# 刷新画面
pygame.display.update()
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