Commit 42f4b1ef by BellCodeEditor

save project

parent 9b146939
Showing with 2 additions and 2 deletions
......@@ -64,7 +64,7 @@ scoreMusic = pygame.mixer.Sound('score.wav')
conDic = {}
with open('record.txt','r',encoding='utf-8') as f:
content = f.read()
conDic = json.load(content)
conDic = json.loads(content)
one = conDic["第1名"]
two = conDic["第2名"]
three = conDic["第3名"]
......@@ -140,7 +140,7 @@ while True:
tag = 20
for k in conDic:
tag += 30
show = basic_render(k+str(conDic[k]),True,(255,0,0))
show = basic_font.render(k+str(conDic[k]),True,(255,0,0))
screen.blit(show,(850,tag))
if score > oldScore:
......
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