完成配置载入类Config

This commit is contained in:
Ziyu
2025-06-16 14:44:47 +08:00
parent ac3b6121b4
commit d3b9ad3f84
6 changed files with 261 additions and 7 deletions
+48
View File
@@ -0,0 +1,48 @@
{
"window": {
"title": "SunnyLand",
"width": 1280,
"height": 720,
"resizable": true
},
"graphics": {
"vsync": true
},
"performance": {
"target_fps": 144
},
"audio": {
"music_volume": 0.5,
"sound_volume": 0.5
},
"input_mappings": {
"pause": [
"P",
"Escape"
],
"move_down": [
"S",
"Down"
],
"jump": [
"J",
"Space"
],
"move_up": [
"W",
"Up"
],
"move_right": [
"D",
"Right"
],
"attack": [
"K",
"MouseLeft"
],
"move_left": [
"A",
"Left"
]
}
}