This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
class setting:
"""管理游戏中的参数的类"""
def __init__(self):
self.screen_size = (500, 500) # 屏幕大小
self.background_color = (255, 255, 255) # 背景色
self.line_width = 1 # 线条粗细
self.line_color = (120, 120,120) # 线条颜色
self.block_width = 24 #每一个方格的宽度
self.screen_color = (150, 150, 150) # 展示界面的颜色
self.closeGame=False #是否触发结束游戏事件
self.endTime=0 #记录触发游戏结束后的时间,当endTime>3秒时,结束游戏