Commit dbef95c1 by BellCodeEditor

auto save

parent b8b9e87b
Showing with 6 additions and 0 deletions
...@@ -3,6 +3,12 @@ from pygame import locals ...@@ -3,6 +3,12 @@ from pygame import locals
import random import random
import json import json
# r = input("是否要重置分数?(y是“是”,n是“否”)")
# if r == "q":
# with open('record.txt','w',encoding='utf-8') as s:
# s.write({"第1名": 0, "第2名": 0, "第3名": 0})
pygame.init() # 初始化 pygame.init() # 初始化
class Block(pygame.sprite.Sprite): # 障碍物精灵类 class Block(pygame.sprite.Sprite): # 障碍物精灵类
......
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