添加字体与文本显示

This commit is contained in:
chicrobot committed 2026-07-26 03:55:27 +08:00
1 parent 97b870d4bf
commit 2d0cea6ec3
3 files changed
+45 -3

No files matched your search

+12 -1
View File
@@ -1,5 +1,16 @@
import os
class GameConfig:
game_name = "Test Game"
window_x = 1920/2
window_y = 1080/2
bg_color = (0, 0, 0)
bg_color = (0, 0, 0)
def data_path():
file_path = os.path.abspath(__file__)
project_path = os.path.dirname(os.path.dirname(os.path.dirname(file_path)))
data_path = os.path.join(project_path, "data")
return data_path
print(data_path())