Commit e3392bbb by BellCodeEditor

save project

parent dac07186
Showing with 7 additions and 7 deletions
......@@ -46,7 +46,7 @@ basic_font=pygame.font.Font('STKAITI.TTF',17)
index = 0
y = 400
jumpState = "runing"
t = 50
t = 10000000000
road_x = 0
bg_x = 0
time = 0
......@@ -87,13 +87,13 @@ while True:
else:
jumpState = "down"
if jumpState == "down": # 降落状态
if t <= 50:
if t <= 10000000000:
y += t
wukong.rect.y = y
t += 2
else:
jumpState = "runing"
t =50
t =10000000000
# 将背景图画上去
bg_x -= 1
......@@ -156,4 +156,4 @@ while True:
screen.blit(scoreSulf,(800,110))
# 刷新画面
pygame.display.update()
FPS.tick(50)
\ No newline at end of file
FPS.tick(400)
\ No newline at end of file
{"第1名": 2, "第2名": 0, "第3名": 0}
\ No newline at end of file
{"第1名": 99, "第2名": 32, "第3名": 6}
\ 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