Commit 9ede051b by BellCodeEditor

save project

parent 6e31ef55
Showing with 10 additions and 4 deletions
......@@ -54,7 +54,12 @@ old_score=score
block_list =pygame.sprite.Group() # 创建精灵组
with open('score.txt','r',encoding='utf-8')as f:
content=f.read()
record=json.loads(content)
one=concent["第1名"]
two=concent["第2名"]
thr=concent["第3名"]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -64,7 +69,8 @@ while True:
if jumpState == "runing":
if event.key == locals.K_SPACE:
jumpState = "up"
speed=8+score\\3
speed=8+score
# 悟空造型
wukong = Player(hero[index])
......
{"第1名": 0, "第2名": 0, "第3名": 0}
\ No newline at end of file
{"第1名": 0, "第2名":0, "第3名":0 }
\ 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