Commit 3a5b517c by BellCodeEditor

save project

parent ead0ca51
Showing with 2 additions and 4 deletions
import pygame
from pygame import locals
import random
import json
pygame.init() # 初始化
class Block(pygame.sprite.Sprite): # 障碍物精灵类
......@@ -58,9 +58,7 @@ old_score=0
block_list =pygame.sprite.Group() # 创建精灵组
with open('record.txt','r',encoding='utf-8')as f:
content = f.read()
record = json.loads(content)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
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