- Some action and event removals were accidentally adding duplicate events and actions. This has been fixed.
- Maximum movement speed increased to 100m per second.
This commit is contained in:
parent
c7e53c5dea
commit
d880ef70c6
@ -143,14 +143,14 @@ func _exit_tree() -> void:
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Camera Deconfiguration
|
#region Camera Deconfiguration
|
||||||
InputMap.action_add_event(&"bugbot_tilt_up", keyboard_tilt_up)
|
InputMap.action_erase_event(&"bugbot_tilt_up", keyboard_tilt_up)
|
||||||
InputMap.action_add_event(&"bugbot_tilt_up", joypad_tilt_up)
|
InputMap.action_erase_event(&"bugbot_tilt_up", joypad_tilt_up)
|
||||||
InputMap.action_add_event(&"bugbot_tilt_down", keyboard_tilt_down)
|
InputMap.action_erase_event(&"bugbot_tilt_down", keyboard_tilt_down)
|
||||||
InputMap.action_add_event(&"bugbot_tilt_down", joypad_tilt_down)
|
InputMap.action_erase_event(&"bugbot_tilt_down", joypad_tilt_down)
|
||||||
InputMap.action_add_event(&"bugbot_pan_left", keyboard_pan_left)
|
InputMap.action_erase_event(&"bugbot_pan_left", keyboard_pan_left)
|
||||||
InputMap.action_add_event(&"bugbot_pan_left", joypad_pan_left)
|
InputMap.action_erase_event(&"bugbot_pan_left", joypad_pan_left)
|
||||||
InputMap.action_add_event(&"bugbot_pan_right", keyboard_pan_right)
|
InputMap.action_erase_event(&"bugbot_pan_right", keyboard_pan_right)
|
||||||
InputMap.action_add_event(&"bugbot_pan_right", joypad_pan_right)
|
InputMap.action_erase_event(&"bugbot_pan_right", joypad_pan_right)
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Speed Deconfiguration
|
#region Speed Deconfiguration
|
||||||
@ -163,15 +163,13 @@ func _exit_tree() -> void:
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Marker Placement Deconfiguration
|
#region Marker Placement Deconfiguration
|
||||||
InputMap.add_action(&"bugbot_place_marker")
|
InputMap.action_erase_event(&"bugbot_place_marker", keyboard_place_marker)
|
||||||
InputMap.action_add_event(&"bugbot_place_marker", keyboard_place_marker)
|
InputMap.action_erase_event(&"bugbot_place_marker", mouse_place_marker)
|
||||||
InputMap.action_add_event(&"bugbot_place_marker", mouse_place_marker)
|
InputMap.action_erase_event(&"bugbot_place_marker", joypad_place_marker)
|
||||||
InputMap.action_add_event(&"bugbot_place_marker", joypad_place_marker)
|
|
||||||
|
|
||||||
InputMap.add_action(&"bugbot_exit_placement")
|
InputMap.action_erase_event(&"bugbot_exit_placement", keyboard_exit_placement)
|
||||||
InputMap.action_add_event(&"bugbot_exit_placement", keyboard_exit_placement)
|
InputMap.action_erase_event(&"bugbot_exit_placement", mouse_exit_placement)
|
||||||
InputMap.action_add_event(&"bugbot_exit_placement", mouse_exit_placement)
|
InputMap.action_erase_event(&"bugbot_exit_placement", joypad_exit_placement)
|
||||||
InputMap.action_add_event(&"bugbot_exit_placement", joypad_exit_placement)
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Action Removal
|
#region Action Removal
|
||||||
@ -224,7 +222,7 @@ func _calculate_movement_speed() -> void:
|
|||||||
movement_speed_change_timer.start()
|
movement_speed_change_timer.start()
|
||||||
else:
|
else:
|
||||||
movement_speed_change_timer.stop()
|
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:
|
func _calculate_rotation(_delta:float) -> void:
|
||||||
var rotation_velocity : Vector2 = Vector2(
|
var rotation_velocity : Vector2 = Vector2(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user