purge: more subtle summon shake (0.5), payoff shake fades alongside flash (0.8s)

main
Artur David 2026-06-18 10:48:56 +02:00
parent d00afe5772
commit 773c729016
1 changed files with 3 additions and 4 deletions

View File

@ -11,12 +11,9 @@ func _ready() -> void:
summon_circle.sprite_frames.set_animation_loop("default", false)
summon_circle.animation_finished.connect(_unleash)
summon_circle.play("default")
camera.shake(6.0, 1.5, true)
camera.shake(6.0, 0.5, true)
func _unleash() -> void:
camera.shake(0.3, 8.0)
await get_tree().create_timer(0.1).timeout
for enemy in get_tree().get_nodes_in_group("enemies"):
if not is_instance_valid(enemy):
continue
@ -28,6 +25,8 @@ func _unleash() -> void:
_flash()
func _flash() -> void:
camera.shake(0.8, 8.0)
var layer = CanvasLayer.new()
layer.layer = 100
add_child(layer)