remove key light position change
This commit is contained in:
parent
4361f46b3c
commit
872b05c43d
@ -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")
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user