Load config using JSON

This commit is contained in:
2025-12-24 22:12:25 +08:00
parent 19be826869
commit 03cd5d83d1
9 changed files with 121 additions and 16 deletions

20
assets/config.json Normal file
View File

@@ -0,0 +1,20 @@
{
"window": {
"width": 1280,
"height": 720,
"fullscreen": false,
"vsync": true,
"title": "孢子棋"
},
"render": {
"logical_width": 640,
"logical_height": 360,
"scale_mode": "integer"
},
"ui": {
"font": "fonts/SourceHanSansSC-Regular.otf",
"font_size": 16
}
}