Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-05-09 16:35:25 +02:00
parent ac80210ba5
commit c7ff5ae4cf
12 changed files with 287 additions and 21 deletions
+24
View File
@@ -27,6 +27,30 @@
"keydown_M": "toggle_audio",
"keydown_F": "toggle_full_screen"
},
"keybinding_level_intro": {
"keydown_Return": "reset_game",
"keydown_Escape": "quit_game",
"keydown_M": "toggle_audio",
"keydown_F": "toggle_full_screen"
},
"keybinding_level_clear": {
"keydown_Return": "reset_game",
"keydown_Escape": "quit_game",
"keydown_M": "toggle_audio",
"keydown_F": "toggle_full_screen"
},
"keybinding_defeat": {
"keydown_Return": "reset_game",
"keydown_Escape": "quit_game",
"keydown_M": "toggle_audio",
"keydown_F": "toggle_full_screen"
},
"keybinding_run_complete": {
"keydown_Return": "reset_game",
"keydown_Escape": "quit_game",
"keydown_M": "toggle_audio",
"keydown_F": "toggle_full_screen"
},
"keybinding_paused": {
"keydown_Return": "reset_game",
"keydown_Escape": "quit_game",
+24
View File
@@ -25,6 +25,30 @@ keybinding_start_menu:
controllerbuttondown_misc1: quit_game
controllerbuttondown_guide: quit_game
keybinding_level_intro:
controllerbuttondown_a: reset_game
controllerbuttondown_start: reset_game
controllerbuttondown_misc1: quit_game
controllerbuttondown_guide: quit_game
keybinding_level_clear:
controllerbuttondown_a: reset_game
controllerbuttondown_start: reset_game
controllerbuttondown_misc1: quit_game
controllerbuttondown_guide: quit_game
keybinding_defeat:
controllerbuttondown_a: reset_game
controllerbuttondown_start: reset_game
controllerbuttondown_misc1: quit_game
controllerbuttondown_guide: quit_game
keybinding_run_complete:
controllerbuttondown_a: reset_game
controllerbuttondown_start: reset_game
controllerbuttondown_misc1: quit_game
controllerbuttondown_guide: quit_game
keybinding_paused:
controllerbuttondown_start: toggle_pause
controllerbuttondown_dpad_up: menu_up
+24
View File
@@ -26,6 +26,30 @@ keybinding_start_menu:
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keybinding_level_intro:
keydown_Return: reset_game
keydown_Escape: quit_game
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keybinding_level_clear:
keydown_Return: reset_game
keydown_Escape: quit_game
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keybinding_defeat:
keydown_Return: reset_game
keydown_Escape: quit_game
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keybinding_run_complete:
keydown_Return: reset_game
keydown_Escape: quit_game
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keybinding_paused:
keydown_Return: reset_game
keydown_Escape: quit_game
+16
View File
@@ -24,6 +24,22 @@ keybinding_start_menu:
joybuttondown_16: toggle_pause
joybuttondown_12: quit_game
keybinding_level_intro:
joybuttondown_13: reset_game
joybuttondown_12: quit_game
keybinding_level_clear:
joybuttondown_13: reset_game
joybuttondown_12: quit_game
keybinding_defeat:
joybuttondown_13: reset_game
joybuttondown_12: quit_game
keybinding_run_complete:
joybuttondown_13: reset_game
joybuttondown_12: quit_game
keybinding_paused:
joybuttondown_13: reset_game
joybuttondown_16: toggle_pause
+16
View File
@@ -20,6 +20,22 @@ keybinding_start_menu:
joybuttondown_10: toggle_pause
joybuttondown_11: quit_game
keybinding_level_intro:
joybuttondown_9: reset_game
joybuttondown_11: quit_game
keybinding_level_clear:
joybuttondown_9: reset_game
joybuttondown_11: quit_game
keybinding_defeat:
joybuttondown_9: reset_game
joybuttondown_11: quit_game
keybinding_run_complete:
joybuttondown_9: reset_game
joybuttondown_11: quit_game
keybinding_paused:
joybuttondown_9: reset_game
joybuttondown_10: toggle_pause