2 Commits

Author SHA1 Message Date
08bd2ca3b4 Merge branch 'main' of https://sgda.game-dev.space/SGDA/EGJ25
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 11s
Create tag and build when new code gets to main / Export (push) Successful in 2m40s
2025-06-29 13:43:17 +02:00
16c7adfceb feat: straightforward lvl 1 2025-06-29 13:43:11 +02:00
2 changed files with 4 additions and 7 deletions

View File

@ -23,7 +23,7 @@ bus/4/name = &"Music"
bus/4/solo = false
bus/4/mute = false
bus/4/bypass_fx = false
bus/4/volume_db = -0.030508
bus/4/volume_db = -10.0741
bus/4/send = &"Master"
bus/5/name = &"Ambiance"
bus/5/solo = false

View File

@ -9,6 +9,7 @@ extends Node2D
var is_interjection_next = false
var current_info = 0
var is_over = false
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
@onready var vo_player_1: AudioStreamPlayer2D = $RightDoor/VOPlayer1
@ -63,16 +64,12 @@ func _on_door_event_confirmed(event_id: String) -> void:
func _on_timer_between_vo_timeout() -> void:
if is_interjection_next:
print("interjection")
if is_over:
vo_interjection.play()
is_interjection_next = not is_interjection_next
return
if current_info >= len(vo_players):
is_over = true
return
vo_players[current_info].play()
current_info += 1
is_interjection_next = not is_interjection_next