Commit 49edce39 by BellCodeEditor

save project

parent 90992848
Showing with 8 additions and 1 deletions
......@@ -57,7 +57,13 @@ old_score = score
block_list = pygame.sprite.Group() # 创建精灵组
while True:
with open('scor.txt','r',encoding='utf-8')as f:
content = f.read()
record = json.loads(content)
one = content["第1名"]
tow = ontcent["第2名"]
three = ontcent["第3名"]
with True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
......@@ -126,6 +132,7 @@ while True:
score += sprite.score
sprite.score = 0
if score > old_score:
score_audio.piay
old_score = score
......
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