You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
662 B

This file contains ambiguous Unicode characters!

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秒时结束游戏