From d880ef70c6a4c594537d3bc8138860288b1225fd Mon Sep 17 00:00:00 2001 From: Jamie Greunbaum Date: Wed, 15 May 2024 01:04:39 -0400 Subject: [PATCH] - Some action and event removals were accidentally adding duplicate events and actions. This has been fixed. - Maximum movement speed increased to 100m per second. --- Scenes/bugbot_player.gd | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/Scenes/bugbot_player.gd b/Scenes/bugbot_player.gd index 579abc1..88dbab7 100644 --- a/Scenes/bugbot_player.gd +++ b/Scenes/bugbot_player.gd @@ -143,14 +143,14 @@ func _exit_tree() -> void: #endregion #region Camera Deconfiguration - InputMap.action_add_event(&"bugbot_tilt_up", keyboard_tilt_up) - InputMap.action_add_event(&"bugbot_tilt_up", joypad_tilt_up) - InputMap.action_add_event(&"bugbot_tilt_down", keyboard_tilt_down) - InputMap.action_add_event(&"bugbot_tilt_down", joypad_tilt_down) - InputMap.action_add_event(&"bugbot_pan_left", keyboard_pan_left) - InputMap.action_add_event(&"bugbot_pan_left", joypad_pan_left) - InputMap.action_add_event(&"bugbot_pan_right", keyboard_pan_right) - InputMap.action_add_event(&"bugbot_pan_right", joypad_pan_right) + InputMap.action_erase_event(&"bugbot_tilt_up", keyboard_tilt_up) + InputMap.action_erase_event(&"bugbot_tilt_up", joypad_tilt_up) + InputMap.action_erase_event(&"bugbot_tilt_down", keyboard_tilt_down) + InputMap.action_erase_event(&"bugbot_tilt_down", joypad_tilt_down) + InputMap.action_erase_event(&"bugbot_pan_left", keyboard_pan_left) + InputMap.action_erase_event(&"bugbot_pan_left", joypad_pan_left) + InputMap.action_erase_event(&"bugbot_pan_right", keyboard_pan_right) + InputMap.action_erase_event(&"bugbot_pan_right", joypad_pan_right) #endregion #region Speed Deconfiguration @@ -163,15 +163,13 @@ func _exit_tree() -> void: #endregion #region Marker Placement Deconfiguration - InputMap.add_action(&"bugbot_place_marker") - InputMap.action_add_event(&"bugbot_place_marker", keyboard_place_marker) - InputMap.action_add_event(&"bugbot_place_marker", mouse_place_marker) - InputMap.action_add_event(&"bugbot_place_marker", joypad_place_marker) + InputMap.action_erase_event(&"bugbot_place_marker", keyboard_place_marker) + InputMap.action_erase_event(&"bugbot_place_marker", mouse_place_marker) + InputMap.action_erase_event(&"bugbot_place_marker", joypad_place_marker) - InputMap.add_action(&"bugbot_exit_placement") - InputMap.action_add_event(&"bugbot_exit_placement", keyboard_exit_placement) - InputMap.action_add_event(&"bugbot_exit_placement", mouse_exit_placement) - InputMap.action_add_event(&"bugbot_exit_placement", joypad_exit_placement) + InputMap.action_erase_event(&"bugbot_exit_placement", keyboard_exit_placement) + InputMap.action_erase_event(&"bugbot_exit_placement", mouse_exit_placement) + InputMap.action_erase_event(&"bugbot_exit_placement", joypad_exit_placement) #endregion #region Action Removal @@ -224,7 +222,7 @@ func _calculate_movement_speed() -> void: movement_speed_change_timer.start() else: movement_speed_change_timer.stop() - movement_speed = clampf(movement_speed, 0.25, 50.0) + movement_speed = clampf(movement_speed, 0.25, 100.0) func _calculate_rotation(_delta:float) -> void: var rotation_velocity : Vector2 = Vector2(