Compare commits
No commits in common. "d89ff29a97d2389e5d3cabf8ff434eb1c1d5e007" and "2c3d8c7cfdfd3cbe4397ed3b075265208a8365a2" have entirely different histories.
d89ff29a97
...
2c3d8c7cfd
Binary file not shown.
|
|
@ -1,24 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="wav"
|
|
||||||
type="AudioStreamWAV"
|
|
||||||
uid="uid://d056xcusjhd7w"
|
|
||||||
path="res://.godot/imported/purge_sigil.wav-9da6710344c80ac37c106e0f9d84aea0.sample"
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://assets/music&sfx/sfx/purge_sigil.wav"
|
|
||||||
dest_files=["res://.godot/imported/purge_sigil.wav-9da6710344c80ac37c106e0f9d84aea0.sample"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
force/8_bit=false
|
|
||||||
force/mono=false
|
|
||||||
force/max_rate=false
|
|
||||||
force/max_rate_hz=44100
|
|
||||||
edit/trim=false
|
|
||||||
edit/normalize=false
|
|
||||||
edit/loop_mode=0
|
|
||||||
edit/loop_begin=0
|
|
||||||
edit/loop_end=-1
|
|
||||||
compress/mode=2
|
|
||||||
|
|
@ -1,15 +1,5 @@
|
||||||
[gd_resource type="AudioBusLayout" format=3 uid="uid://5oswo22yvmtg"]
|
[gd_resource type="AudioBusLayout" format=3 uid="uid://5oswo22yvmtg"]
|
||||||
|
|
||||||
[sub_resource type="AudioEffectReverb" id="AudioEffectReverb_purge"]
|
|
||||||
predelay_msec = 30.0
|
|
||||||
predelay_feedback = 0.4
|
|
||||||
room_size = 0.9
|
|
||||||
damping = 0.4
|
|
||||||
spread = 1.0
|
|
||||||
dry = 0.6
|
|
||||||
wet = 0.4
|
|
||||||
hipass = 0.0
|
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
bus/1/name = &"Music"
|
bus/1/name = &"Music"
|
||||||
bus/1/solo = false
|
bus/1/solo = false
|
||||||
|
|
@ -23,11 +13,3 @@ bus/2/mute = false
|
||||||
bus/2/bypass_fx = false
|
bus/2/bypass_fx = false
|
||||||
bus/2/volume_db = -14.05601
|
bus/2/volume_db = -14.05601
|
||||||
bus/2/send = &"Master"
|
bus/2/send = &"Master"
|
||||||
bus/3/name = &"PurgeReverb"
|
|
||||||
bus/3/solo = false
|
|
||||||
bus/3/mute = false
|
|
||||||
bus/3/bypass_fx = false
|
|
||||||
bus/3/volume_db = 0.0
|
|
||||||
bus/3/send = &"SFX"
|
|
||||||
bus/3/effect/0/effect = SubResource("AudioEffectReverb_purge")
|
|
||||||
bus/3/effect/0/enabled = true
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,8 @@
|
||||||
extends Node2D
|
extends Node2D
|
||||||
|
|
||||||
const ELITE_DAMAGE_PCT := 0.75
|
const ELITE_DAMAGE_PCT := 0.75
|
||||||
const FLASH_HOLD_DURATION := 0.1
|
|
||||||
const FLASH_FADE_DURATION := 0.6
|
const FLASH_FADE_DURATION := 0.6
|
||||||
|
|
||||||
var _build_up_sound = preload("res://assets/music&sfx/sfx/purge_build_up.wav")
|
|
||||||
var _impact_boom_sound = preload("res://assets/music&sfx/sfx/purge_impact_boom.wav")
|
|
||||||
var _sustained_boom_sound = preload("res://assets/music&sfx/sfx/purge_sustained_boom.wav")
|
|
||||||
var _bass_sound = preload("res://assets/music&sfx/sfx/pruge_bass.wav")
|
|
||||||
var _flash_sound = preload("res://assets/music&sfx/sfx/purge_sigil.wav")
|
|
||||||
|
|
||||||
@onready var summon_circle: AnimatedSprite2D = $SummonCircle/AnimatedSprite2D
|
@onready var summon_circle: AnimatedSprite2D = $SummonCircle/AnimatedSprite2D
|
||||||
@onready var camera = get_node("/root/Game/Camera2D")
|
@onready var camera = get_node("/root/Game/Camera2D")
|
||||||
|
|
||||||
|
|
@ -17,35 +10,8 @@ func _ready() -> void:
|
||||||
summon_circle.sprite_frames = summon_circle.sprite_frames.duplicate()
|
summon_circle.sprite_frames = summon_circle.sprite_frames.duplicate()
|
||||||
summon_circle.sprite_frames.set_animation_loop("default", false)
|
summon_circle.sprite_frames.set_animation_loop("default", false)
|
||||||
summon_circle.animation_finished.connect(_unleash)
|
summon_circle.animation_finished.connect(_unleash)
|
||||||
summon_circle.frame_changed.connect(_on_summon_circle_frame_changed)
|
|
||||||
summon_circle.play("default")
|
summon_circle.play("default")
|
||||||
camera.shake(2.0, 0.5)
|
camera.shake(6.0, 0.5, true)
|
||||||
_play_sfx(_build_up_sound, "SFX")
|
|
||||||
|
|
||||||
const _SIGIL_TICK_PITCHES := {
|
|
||||||
34: 0.500,
|
|
||||||
38: 0.595,
|
|
||||||
47: 0.707,
|
|
||||||
56: 0.841,
|
|
||||||
63: 0.707,
|
|
||||||
}
|
|
||||||
|
|
||||||
func _on_summon_circle_frame_changed() -> void:
|
|
||||||
var frame := summon_circle.frame
|
|
||||||
if frame == 77:
|
|
||||||
_play_sfx(_flash_sound, "SFX", -10.0)
|
|
||||||
elif _SIGIL_TICK_PITCHES.has(frame):
|
|
||||||
_play_sfx(_flash_sound, "SFX", -16.0, _SIGIL_TICK_PITCHES[frame])
|
|
||||||
|
|
||||||
func _play_sfx(stream: AudioStream, bus: String, volume_db: float = 0.0, pitch_scale: float = 1.0) -> void:
|
|
||||||
var asp = AudioStreamPlayer.new()
|
|
||||||
asp.stream = stream
|
|
||||||
asp.bus = bus
|
|
||||||
asp.volume_db = volume_db
|
|
||||||
asp.pitch_scale = pitch_scale
|
|
||||||
get_parent().add_child(asp)
|
|
||||||
asp.play()
|
|
||||||
asp.finished.connect(asp.queue_free)
|
|
||||||
|
|
||||||
func _unleash() -> void:
|
func _unleash() -> void:
|
||||||
for enemy in get_tree().get_nodes_in_group("enemies"):
|
for enemy in get_tree().get_nodes_in_group("enemies"):
|
||||||
|
|
@ -60,9 +26,6 @@ func _unleash() -> void:
|
||||||
|
|
||||||
func _flash() -> void:
|
func _flash() -> void:
|
||||||
camera.shake(0.4, 8.0)
|
camera.shake(0.4, 8.0)
|
||||||
_play_sfx(_impact_boom_sound, "SFX", 3.0)
|
|
||||||
_play_sfx(_sustained_boom_sound, "PurgeReverb")
|
|
||||||
_play_sfx(_bass_sound, "PurgeReverb")
|
|
||||||
|
|
||||||
var circle_tween = create_tween()
|
var circle_tween = create_tween()
|
||||||
circle_tween.set_pause_mode(Tween.TWEEN_PAUSE_PROCESS)
|
circle_tween.set_pause_mode(Tween.TWEEN_PAUSE_PROCESS)
|
||||||
|
|
@ -80,7 +43,6 @@ func _flash() -> void:
|
||||||
|
|
||||||
var tween = create_tween()
|
var tween = create_tween()
|
||||||
tween.set_pause_mode(Tween.TWEEN_PAUSE_PROCESS)
|
tween.set_pause_mode(Tween.TWEEN_PAUSE_PROCESS)
|
||||||
tween.tween_interval(FLASH_HOLD_DURATION)
|
|
||||||
tween.tween_property(rect, "color:a", 0.0, FLASH_FADE_DURATION)
|
tween.tween_property(rect, "color:a", 0.0, FLASH_FADE_DURATION)
|
||||||
await tween.finished
|
await tween.finished
|
||||||
queue_free()
|
queue_free()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue