forked from hexianglong/o.nmgjg.com.cn
17 lines
521 B
Python
17 lines
521 B
Python
# config.py
|
|
|
|
import curses
|
|
|
|
difficulty = "Normal"
|
|
player = {"x": 0, "y": 0}
|
|
camera = {"x": 0, "y": 0}
|
|
objects = set()
|
|
|
|
def init_colors():
|
|
# 初始化配色:前景色, 背景黑
|
|
curses.start_color()
|
|
curses.init_pair(1, curses.COLOR_YELLOW, curses.COLOR_BLACK) # 玩家
|
|
curses.init_pair(2, curses.COLOR_GREEN, curses.COLOR_BLACK) # 物品
|
|
curses.init_pair(3, curses.COLOR_WHITE, curses.COLOR_BLACK) # 菜单文字
|
|
curses.init_pair(4, curses.COLOR_GREEN, curses.COLOR_BLACK) # 标题/提示
|