Commit 0d064b75 by BellCodeEditor

save project

parent 2cf78f21
Showing with 12 additions and 2 deletions
...@@ -135,6 +135,16 @@ while True: ...@@ -135,6 +135,16 @@ while True:
road_x=0 road_x=0
if bg_x<=-1000: if bg_x<=-1000:
bg_x=0 bg_x=0
if defen > three:
if defen>one:
duqu2["第3名"]=two
duqu2["第2名"]=one
duqu2["第1名"]=defen
elif defen>two:
duqu2["第3名"]=two
duqu2["第2名"]=defen
else:
duqu2["第3名"]=defen
text2 = ziti.render('第一名:'+str(duqu2["第1名"]),True,(255,255,255)) text2 = ziti.render('第一名:'+str(duqu2["第1名"]),True,(255,255,255))
screen.blit(text2,(850,30)) screen.blit(text2,(850,30))
text3 = ziti.render('第二名:'+str(duqu2["第2名"]),True,(255,255,255)) text3 = ziti.render('第二名:'+str(duqu2["第2名"]),True,(255,255,255))
......
{"第1名": 0, "第2名": 0, "第3名": 0} {"第1名": 1, "第2名": 1, "第3名": 0}
\ No newline at end of file \ 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