Cheat Gun

This commit is contained in:
Marco 2025-02-15 17:51:06 +01:00
commit cb27f33a6d
21 changed files with 620 additions and 436 deletions

View file

@ -48,10 +48,10 @@ func smooth_damp(current: float, target: float, current_velocity: float, smooth_
return [output, current_velocity]
func _unhandled_input(_event: InputEvent) -> void:
if Input.is_key_pressed(KEY_1):
if Input.is_action_just_pressed("debug_camera_1"):
pixel_snap = not pixel_snap
print("Camera pixel snap: ", pixel_snap)
if Input.is_key_pressed(KEY_2):
if Input.is_action_just_pressed("debug_camera_2"):
enable_smoothing = not enable_smoothing
print("Camera smoothing: ", enable_smoothing)