remove key light position change

This commit is contained in:
Teatov 2025-07-29 15:20:34 +10:00
parent 4361f46b3c
commit 872b05c43d
2 changed files with 1 additions and 4 deletions

View File

@ -51,7 +51,7 @@ _lower_right_label = NodePath("LowerRightLabel")
_center_label = NodePath("CenterLabel")
_press_light = NodePath("PressLight")
_sfx_player = NodePath("SFXPlayer")
_idle_frequency = 16.26
_idle_frequency = -29.275
_press_sfx = SubResource("AudioStreamRandomizer_agrko")
_release_sfx = SubResource("AudioStreamRandomizer_ch32x")

View File

@ -47,7 +47,6 @@ var _idle_sin_time: float
var _light_timer: float
@onready var _default_position: Vector3 = position
@onready var _light_default_position: Vector3 = _press_light.position
@onready
var _polyphonic := _sfx_player.get_stream_playback() as AudioStreamPlaybackPolyphonic
@onready var _pos_sod := SecondOrderDynamics.new(_pos_sod_fzr, _default_position)
@ -210,8 +209,6 @@ func _animate_light(delta: float) -> void:
_press_light.visible = true
_press_light.light_energy = (_light_timer / _light_fade_time) * _light_energy
_light_timer -= delta
_press_light.position = _light_default_position
_press_light.position.y -= position.y
func _play_sfx(stream: AudioStream) -> void: