From 0cb955d7d79d89b611653cdb79522beb028e248c Mon Sep 17 00:00:00 2001 From: p6cfvli9z <2359212962@qq.com> Date: Sun, 2 Jun 2024 11:29:49 +0800 Subject: [PATCH] ADD file via upload --- cfg.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cfg.py diff --git a/cfg.py b/cfg.py new file mode 100644 index 0000000..a12e876 --- /dev/null +++ b/cfg.py @@ -0,0 +1,30 @@ +'''配置文件''' +import os + + +# 窗口大小(width, height) +SCREENSIZE = (500, 260) +# 定义一些颜色 +RED = (255, 0, 0) +BLACK = (0, 0, 0) +AZURE = (240, 255, 255) +WHITE = (255, 255, 255) +MISTYROSE = (255, 228, 225) +PALETURQUOISE = (175, 238, 238) +PAPAYAWHIP = (255, 239, 213) +LIGHTGRAY = (211, 211, 211) +GAINSBORO = (230, 230, 230) +WHITESMOKE = (245, 245, 245) +DARKGRAY = (169, 169, 169) +BLUE = (0, 0, 255) +DEEPSKYBLUE = (0, 191, 255) +SKYBLUE = (135, 206, 235) +LIGHTSKYBLUE = (135, 206, 250) +# 背景音乐路径 +BGM_PATH = os.path.join(os.getcwd(), 'resources/music/bgm.mp3') +# 字体路径 +FONT_PATH = os.path.join(os.getcwd(), 'resources/font/STXINGKA.TTF') +# 背景图片路径 +BG_IMAGE_PATH = os.path.join(os.getcwd(), 'resources/images/bg.png') +# ICON路径 +ICON_IMAGE_PATH = os.path.join(os.getcwd(), 'resources/images/icon.png') \ No newline at end of file