Refactor keybindings configuration and remove obsolete JSON files

This commit is contained in:
2025-08-19 23:21:37 +02:00
parent 1269913275
commit 8451ac7913
14 changed files with 102 additions and 90 deletions
-15
View File
@@ -1,15 +0,0 @@
{
"new_rat": [["keyup", "Return"], ["keydown", "Return"]],
"kill_rat": ["D"],
"toggle_audio": ["M"],
"toggle_full_screen": ["F"],
"scroll_up": [["keydown", "Up"], ["keydown", "Up"]],
"scroll_down": ["Down", 9],
"scroll_left": ["Left", 10],
"scroll_right": ["Right", 11],
"spawn_bomb": ["Space", 1],
"spawn_mine": ["Left Ctrl", 2, 17],
"spawn_nuclear_bomb": ["N", 3],
"pause": ["P", 16]
}
-6
View File
@@ -1,6 +0,0 @@
{
"reset_game": ["Return", 13],
"pause": ["P", 16],
"quit": ["Q", 12]
}
-6
View File
@@ -1,6 +0,0 @@
{
"start_game": ["Return", 13],
"toggle_full_screen": ["F"],
"quit": ["Q", 12]
}
+12 -2
View File
@@ -12,8 +12,18 @@ keybinding_game:
keyup_Left: stop_scrolling
keyup_Right: stop_scrolling
keydown_Space: spawn_new_bomb
keydown_N: spawn_nuclear_bomb
keydown_N: spawn_new_nuclear_bomb
keydown_Left_Ctrl: spawn_new_mine
keydown_P: toggle_pause
keybinding_start_menu:
keydown_Return: reset_game
keydown_Escape: quit_game
keydown_Escape: quit_game
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keybinding_paused:
keydown_Return: reset_game
keydown_Escape: quit_game
keydown_M: toggle_audio
keydown_F: toggle_full_screen
+29
View File
@@ -0,0 +1,29 @@
keybinding_game:
keydown_Return: spawn_rat
keydown_D: kill_rat
keydown_M: toggle_audio
keydown_F: toggle_full_screen
keydown_Up: start_scrolling|Up
keydown_Down: start_scrolling|Down
keydown_Left: start_scrolling|Left
keydown_Right: start_scrolling|Right
keyup_Up: stop_scrolling
keyup_Down: stop_scrolling
keyup_Left: stop_scrolling
keyup_Right: stop_scrolling
keydown_Space: spawn_new_bomb
keydown_N: spawn_new_nuclear_bomb
keydown_Left_Ctrl: spawn_new_mine
keydown_P: toggle_pause
keybinding_start_menu:
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
keydown_M: toggle_audio
keydown_F: toggle_full_screen
+24
View File
@@ -0,0 +1,24 @@
keybinding_game:
joybuttondown_13: spawn_rat
joybuttondown_8: start_scrolling|Up
joybuttondown_9: start_scrolling|Down
joybuttondown_10: start_scrolling|Left
joybuttondown_11: start_scrolling|Right
joybuttonup_8: stop_scrolling
joybuttonup_9: stop_scrolling
joybuttonup_10: stop_scrolling
joybuttonup_11: stop_scrolling
joybuttondown_1: spawn_new_bomb
joybuttondown_3: spawn_new_nuclear_bomb
joybuttondown_2: spawn_new_mine
joybuttondown_16: toggle_pause
keybinding_start_menu:
joybuttondown_13: reset_game
joybuttondown_16: toggle_pause
joybuttondown_12: quit_game
keybinding_paused:
joybuttondown_13: reset_game
joybuttondown_16: toggle_pause
joybuttondown_12: quit_game