generated from SGDA/GodotExampleProject
Compare commits
27 Commits
v0.1.15
...
08bd2ca3b4
Author | SHA1 | Date | |
---|---|---|---|
08bd2ca3b4 | |||
16c7adfceb | |||
4344a43e02 | |||
dbf2092411 | |||
6440cb26a9 | |||
ca5fb354c0 | |||
00ef11d3fb | |||
3564825cd1 | |||
1057d2d81b | |||
3f5156a48b | |||
a271dc1d36 | |||
5b37da17e0 | |||
9b781ac431 | |||
42fa5edecf | |||
d478f81fc0 | |||
84cf2d3131 | |||
12cd9a5232 | |||
c12009c6d5 | |||
2eab16feab | |||
62afaea51d | |||
d92d6203cf | |||
7d9dfc40a6 | |||
cc93f8dfc4 | |||
de8079f0da | |||
ad040b4940 | |||
5275d63aa9 | |||
16e0db2f9c |
@ -6,11 +6,15 @@ extends Control
|
|||||||
@export var options_packed_scene : PackedScene
|
@export var options_packed_scene : PackedScene
|
||||||
@export var credits_packed_scene : PackedScene
|
@export var credits_packed_scene : PackedScene
|
||||||
|
|
||||||
|
@onready var background_music_player: AudioStreamPlayer = $BackgroundMusicPlayer
|
||||||
|
@onready var audio_stream_player: AudioStreamPlayer = $AudioStreamPlayer
|
||||||
|
|
||||||
var options_scene
|
var options_scene
|
||||||
var credits_scene
|
var credits_scene
|
||||||
var sub_menu
|
var sub_menu
|
||||||
|
|
||||||
func load_game_scene() -> void:
|
func load_game_scene() -> void:
|
||||||
|
audio_stream_player.stop()
|
||||||
SceneLoader.load_scene(game_scene_path)
|
SceneLoader.load_scene(game_scene_path)
|
||||||
|
|
||||||
func new_game() -> void:
|
func new_game() -> void:
|
||||||
@ -73,6 +77,7 @@ func _ready() -> void:
|
|||||||
_add_or_hide_options()
|
_add_or_hide_options()
|
||||||
_add_or_hide_credits()
|
_add_or_hide_credits()
|
||||||
_hide_new_game_if_unset()
|
_hide_new_game_if_unset()
|
||||||
|
audio_stream_player.play()
|
||||||
|
|
||||||
func _on_new_game_button_pressed() -> void:
|
func _on_new_game_button_pressed() -> void:
|
||||||
new_game()
|
new_game()
|
||||||
|
Binary file not shown.
BIN
assets/Audio/MUS_LVL1_intro.ogg
Normal file
BIN
assets/Audio/MUS_LVL1_intro.ogg
Normal file
Binary file not shown.
19
assets/Audio/MUS_LVL1_intro.ogg.import
Normal file
19
assets/Audio/MUS_LVL1_intro.ogg.import
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="oggvorbisstr"
|
||||||
|
type="AudioStreamOggVorbis"
|
||||||
|
uid="uid://cklwwfr8t6px6"
|
||||||
|
path="res://.godot/imported/MUS_LVL1_intro.ogg-3e6e9b66588934674b604208ed7dbc50.oggvorbisstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/Audio/MUS_LVL1_intro.ogg"
|
||||||
|
dest_files=["res://.godot/imported/MUS_LVL1_intro.ogg-3e6e9b66588934674b604208ed7dbc50.oggvorbisstr"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
Binary file not shown.
BIN
assets/Audio/MUS_LVL2_intro.ogg
Normal file
BIN
assets/Audio/MUS_LVL2_intro.ogg
Normal file
Binary file not shown.
19
assets/Audio/MUS_LVL2_intro.ogg.import
Normal file
19
assets/Audio/MUS_LVL2_intro.ogg.import
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="oggvorbisstr"
|
||||||
|
type="AudioStreamOggVorbis"
|
||||||
|
uid="uid://cb40pasbhcfuq"
|
||||||
|
path="res://.godot/imported/MUS_LVL2_intro.ogg-27002ff0e4a91789426ade7b2dbe8335.oggvorbisstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/Audio/MUS_LVL2_intro.ogg"
|
||||||
|
dest_files=["res://.godot/imported/MUS_LVL2_intro.ogg-27002ff0e4a91789426ade7b2dbe8335.oggvorbisstr"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
Binary file not shown.
BIN
assets/Audio/MUS_LVL3_intro.ogg
Normal file
BIN
assets/Audio/MUS_LVL3_intro.ogg
Normal file
Binary file not shown.
19
assets/Audio/MUS_LVL3_intro.ogg.import
Normal file
19
assets/Audio/MUS_LVL3_intro.ogg.import
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="oggvorbisstr"
|
||||||
|
type="AudioStreamOggVorbis"
|
||||||
|
uid="uid://b2n1oebsc28yt"
|
||||||
|
path="res://.godot/imported/MUS_LVL3_intro.ogg-16ca681d3903628bcefc5e0d234cd3b8.oggvorbisstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/Audio/MUS_LVL3_intro.ogg"
|
||||||
|
dest_files=["res://.godot/imported/MUS_LVL3_intro.ogg-16ca681d3903628bcefc5e0d234cd3b8.oggvorbisstr"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
Binary file not shown.
BIN
assets/Audio/MUS_MENU_loop.ogg
Normal file
BIN
assets/Audio/MUS_MENU_loop.ogg
Normal file
Binary file not shown.
19
assets/Audio/MUS_MENU_loop.ogg.import
Normal file
19
assets/Audio/MUS_MENU_loop.ogg.import
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="oggvorbisstr"
|
||||||
|
type="AudioStreamOggVorbis"
|
||||||
|
uid="uid://c6n57rs4s1kqj"
|
||||||
|
path="res://.godot/imported/MUS_MENU_loop.ogg-582a182b0e37c2cde78aa50257dc165a.oggvorbisstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/Audio/MUS_MENU_loop.ogg"
|
||||||
|
dest_files=["res://.godot/imported/MUS_MENU_loop.ogg-582a182b0e37c2cde78aa50257dc165a.oggvorbisstr"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=true
|
||||||
|
loop_offset=0.0
|
||||||
|
bpm=0.0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
@ -13,7 +13,7 @@ dest_files=["res://.godot/imported/VO_LVL2_A_01.ogg-5e256a802dfbbccf6953e19606ab
|
|||||||
[params]
|
[params]
|
||||||
|
|
||||||
loop=false
|
loop=false
|
||||||
loop_offset=0
|
loop_offset=0.0
|
||||||
bpm=0
|
bpm=0.0
|
||||||
beat_count=0
|
beat_count=0
|
||||||
bar_beats=4
|
bar_beats=4
|
||||||
|
BIN
assets/Audio/drive-download-20250629T102843Z-1-001.zip
Normal file
BIN
assets/Audio/drive-download-20250629T102843Z-1-001.zip
Normal file
Binary file not shown.
BIN
assets/garance/EGJ-Bilboard.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/EGJ-Bilboard.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/EGJ-Bilboard.png.import
Normal file
34
assets/garance/EGJ-Bilboard.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://d0m0siln45uyk"
|
||||||
|
path="res://.godot/imported/EGJ-Bilboard.png-92fb77e628cff86a12793cb481c9dfc3.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/garance/EGJ-Bilboard.png"
|
||||||
|
dest_files=["res://.godot/imported/EGJ-Bilboard.png-92fb77e628cff86a12793cb481c9dfc3.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
assets/garance/EGJ-Green-tiles.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/EGJ-Green-tiles.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/EGJ-Green-tiles.png.import
Normal file
34
assets/garance/EGJ-Green-tiles.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://lqn1agbqybrv"
|
||||||
|
path="res://.godot/imported/EGJ-Green-tiles.png-1c52bebef5d392ae5c1aa00936fe3f02.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/garance/EGJ-Green-tiles.png"
|
||||||
|
dest_files=["res://.godot/imported/EGJ-Green-tiles.png-1c52bebef5d392ae5c1aa00936fe3f02.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
assets/garance/EGJ-MurUni.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/EGJ-MurUni.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/EGJ-MurUni.png.import
Normal file
34
assets/garance/EGJ-MurUni.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://ebw4okpvcioc"
|
||||||
|
path="res://.godot/imported/EGJ-MurUni.png-1e473768d3bca838d36aee5a34900282.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/garance/EGJ-MurUni.png"
|
||||||
|
dest_files=["res://.godot/imported/EGJ-MurUni.png-1e473768d3bca838d36aee5a34900282.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
assets/garance/EGJ-PriseElectrique.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/EGJ-PriseElectrique.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/EGJ-PriseElectrique.png.import
Normal file
34
assets/garance/EGJ-PriseElectrique.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bc3tdjrupw6vf"
|
||||||
|
path="res://.godot/imported/EGJ-PriseElectrique.png-a8fa4eaee2608b011ea3ea9509ee8c06.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/garance/EGJ-PriseElectrique.png"
|
||||||
|
dest_files=["res://.godot/imported/EGJ-PriseElectrique.png-a8fa4eaee2608b011ea3ea9509ee8c06.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
assets/garance/EGJ-TrapDoor.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/EGJ-TrapDoor.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/EGJ-TrapDoor.png.import
Normal file
34
assets/garance/EGJ-TrapDoor.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://pc5817wfl1no"
|
||||||
|
path="res://.godot/imported/EGJ-TrapDoor.png-4b40cb8e4fcb87241c8db0dc35e949f4.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/garance/EGJ-TrapDoor.png"
|
||||||
|
dest_files=["res://.godot/imported/EGJ-TrapDoor.png-4b40cb8e4fcb87241c8db0dc35e949f4.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
@ -5,35 +5,29 @@ bus/1/name = &"Cinematique"
|
|||||||
bus/1/solo = false
|
bus/1/solo = false
|
||||||
bus/1/mute = false
|
bus/1/mute = false
|
||||||
bus/1/bypass_fx = false
|
bus/1/bypass_fx = false
|
||||||
bus/1/volume_db = 0.0
|
bus/1/volume_db = -9.85181
|
||||||
bus/1/send = &"Master"
|
bus/1/send = &"Master"
|
||||||
bus/2/name = &"Character"
|
bus/2/name = &"VoiceOver"
|
||||||
bus/2/solo = false
|
bus/2/solo = false
|
||||||
bus/2/mute = false
|
bus/2/mute = false
|
||||||
bus/2/bypass_fx = false
|
bus/2/bypass_fx = false
|
||||||
bus/2/volume_db = 0.0
|
bus/2/volume_db = -0.030508
|
||||||
bus/2/send = &"Master"
|
bus/2/send = &"Master"
|
||||||
bus/3/name = &"VoiceOver"
|
bus/3/name = &"UI"
|
||||||
bus/3/solo = false
|
bus/3/solo = false
|
||||||
bus/3/mute = false
|
bus/3/mute = false
|
||||||
bus/3/bypass_fx = false
|
bus/3/bypass_fx = false
|
||||||
bus/3/volume_db = 0.0
|
bus/3/volume_db = -2.91905
|
||||||
bus/3/send = &"Master"
|
bus/3/send = &"Master"
|
||||||
bus/4/name = &"UI"
|
bus/4/name = &"Music"
|
||||||
bus/4/solo = false
|
bus/4/solo = false
|
||||||
bus/4/mute = false
|
bus/4/mute = false
|
||||||
bus/4/bypass_fx = false
|
bus/4/bypass_fx = false
|
||||||
bus/4/volume_db = 0.0
|
bus/4/volume_db = -10.0741
|
||||||
bus/4/send = &"Master"
|
bus/4/send = &"Master"
|
||||||
bus/5/name = &"Music"
|
bus/5/name = &"Ambiance"
|
||||||
bus/5/solo = false
|
bus/5/solo = false
|
||||||
bus/5/mute = false
|
bus/5/mute = false
|
||||||
bus/5/bypass_fx = false
|
bus/5/bypass_fx = false
|
||||||
bus/5/volume_db = -5.32994
|
bus/5/volume_db = 0.0
|
||||||
bus/5/send = &"Master"
|
bus/5/send = &"Master"
|
||||||
bus/6/name = &"Ambiance"
|
|
||||||
bus/6/solo = false
|
|
||||||
bus/6/mute = false
|
|
||||||
bus/6/bypass_fx = false
|
|
||||||
bus/6/volume_db = 0.0
|
|
||||||
bus/6/send = &"Master"
|
|
||||||
|
@ -24,12 +24,31 @@ var current_info = 0
|
|||||||
@onready var vo_player_10: AudioStreamPlayer2D = $RightDoor/VOPlayer10
|
@onready var vo_player_10: AudioStreamPlayer2D = $RightDoor/VOPlayer10
|
||||||
@onready var vo_player_11: AudioStreamPlayer2D = $RightDoor/VOPlayer11
|
@onready var vo_player_11: AudioStreamPlayer2D = $RightDoor/VOPlayer11
|
||||||
@onready var vo_player_12: AudioStreamPlayer2D = $RightDoor/VOPlayer12
|
@onready var vo_player_12: AudioStreamPlayer2D = $RightDoor/VOPlayer12
|
||||||
|
var vo_players: Array[AudioStreamPlayer2D] = []
|
||||||
|
|
||||||
|
var currently_playing: AudioStreamPlayer2D
|
||||||
|
var already_played_batch_1 = false
|
||||||
|
var already_played_batch_2 = false
|
||||||
|
var already_played_batch_3 = false
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
GUIDE.enable_mapping_context(base_mode)
|
GUIDE.enable_mapping_context(base_mode)
|
||||||
|
|
||||||
|
vo_players.append(vo_player_1)
|
||||||
|
vo_players.append(vo_player_2)
|
||||||
|
vo_players.append(vo_player_3)
|
||||||
|
vo_players.append(vo_player_4)
|
||||||
|
|
||||||
|
vo_players.append(vo_player_5)
|
||||||
|
vo_players.append(vo_player_6)
|
||||||
|
vo_players.append(vo_player_7)
|
||||||
|
vo_players.append(vo_player_8)
|
||||||
|
|
||||||
|
vo_players.append(vo_player_9)
|
||||||
|
vo_players.append(vo_player_10)
|
||||||
|
vo_players.append(vo_player_11)
|
||||||
|
vo_players.append(vo_player_12)
|
||||||
|
|
||||||
func _on_interactible_triggered(event_id: String) -> void:
|
func _on_interactible_triggered(event_id: String) -> void:
|
||||||
interact.play()
|
interact.play()
|
||||||
@ -37,7 +56,6 @@ func _on_interactible_triggered(event_id: String) -> void:
|
|||||||
if vies == 0:
|
if vies == 0:
|
||||||
SceneLoader.load_scene(golé)
|
SceneLoader.load_scene(golé)
|
||||||
|
|
||||||
|
|
||||||
func _on_wrong_door_event_triggered(event_id: String) -> void:
|
func _on_wrong_door_event_triggered(event_id: String) -> void:
|
||||||
SceneLoader.load_scene(golé)
|
SceneLoader.load_scene(golé)
|
||||||
|
|
||||||
@ -47,42 +65,107 @@ func _on_right_door_event_triggered(event_id: String) -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_timer_between_vo_timeout() -> void:
|
func _on_timer_between_vo_timeout() -> void:
|
||||||
if is_interjection_next:
|
if currently_playing == null or not currently_playing.playing:
|
||||||
|
currently_playing = vo_interjection
|
||||||
vo_interjection.play()
|
vo_interjection.play()
|
||||||
is_interjection_next = not is_interjection_next
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if current_info > 12:
|
|
||||||
return
|
|
||||||
|
|
||||||
if current_info == 0:
|
|
||||||
vo_player_1.play()
|
|
||||||
if current_info == 1:
|
|
||||||
vo_player_2.play()
|
|
||||||
if current_info == 2:
|
|
||||||
vo_player_3.play()
|
|
||||||
if current_info == 3:
|
|
||||||
vo_player_4.play()
|
|
||||||
if current_info == 4:
|
|
||||||
vo_player_5.play()
|
|
||||||
if current_info == 5:
|
|
||||||
vo_player_6.play()
|
|
||||||
if current_info == 6:
|
|
||||||
vo_player_7.play()
|
|
||||||
if current_info == 7:
|
|
||||||
vo_player_8.play()
|
|
||||||
if current_info == 8:
|
|
||||||
vo_player_9.play()
|
|
||||||
if current_info == 9:
|
|
||||||
vo_player_10.play()
|
|
||||||
if current_info == 10:
|
|
||||||
vo_player_11.play()
|
|
||||||
if current_info == 11:
|
|
||||||
vo_player_12.play()
|
|
||||||
|
|
||||||
current_info += 1
|
|
||||||
is_interjection_next = not is_interjection_next
|
|
||||||
|
|
||||||
|
|
||||||
func _on_door_event_triggered(event_id: String) -> void:
|
func _on_door_event_triggered(event_id: String) -> void:
|
||||||
interact.play()
|
interact.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_first_batch_trigger_body_entered(body: Node2D) -> void:
|
||||||
|
if body.name != "Player":
|
||||||
|
return
|
||||||
|
if already_played_batch_1:
|
||||||
|
return
|
||||||
|
already_played_batch_1 = true
|
||||||
|
|
||||||
|
if currently_playing != null:
|
||||||
|
currently_playing.stop()
|
||||||
|
|
||||||
|
currently_playing = vo_player_1
|
||||||
|
vo_player_1.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_1_finished() -> void:
|
||||||
|
currently_playing = vo_player_2
|
||||||
|
vo_player_2.play()
|
||||||
|
|
||||||
|
func _on_vo_player_2_finished() -> void:
|
||||||
|
currently_playing = vo_player_3
|
||||||
|
vo_player_3.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_3_finished() -> void:
|
||||||
|
currently_playing.stop()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_first_batch_trigger_2_body_entered(body: Node2D) -> void:
|
||||||
|
if body.name != "Player":
|
||||||
|
return
|
||||||
|
if already_played_batch_2:
|
||||||
|
return
|
||||||
|
already_played_batch_2 = true
|
||||||
|
|
||||||
|
currently_playing.stop()
|
||||||
|
currently_playing = vo_player_4
|
||||||
|
vo_player_4.play()
|
||||||
|
|
||||||
|
func _on_vo_player_4_finished() -> void:
|
||||||
|
currently_playing = vo_player_5
|
||||||
|
vo_player_5.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_5_finished() -> void:
|
||||||
|
currently_playing = vo_player_6
|
||||||
|
vo_player_6.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_6_finished() -> void:
|
||||||
|
currently_playing = vo_player_7
|
||||||
|
vo_player_7.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_7_finished() -> void:
|
||||||
|
currently_playing.stop()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_first_batch_trigger_3_body_entered(body: Node2D) -> void:
|
||||||
|
if body.name != "Player":
|
||||||
|
return
|
||||||
|
if already_played_batch_3:
|
||||||
|
return
|
||||||
|
already_played_batch_3 = true
|
||||||
|
|
||||||
|
currently_playing.stop()
|
||||||
|
currently_playing = vo_player_8
|
||||||
|
vo_player_8.play()
|
||||||
|
|
||||||
|
func _on_vo_player_8_finished() -> void:
|
||||||
|
currently_playing = vo_player_9
|
||||||
|
vo_player_9.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_9_finished() -> void:
|
||||||
|
currently_playing = vo_player_10
|
||||||
|
vo_player_10.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_10_finished() -> void:
|
||||||
|
currently_playing = vo_player_11
|
||||||
|
vo_player_11.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_11_finished() -> void:
|
||||||
|
currently_playing = vo_player_12
|
||||||
|
vo_player_12.play()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_player_12_finished() -> void:
|
||||||
|
currently_playing.stop()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_vo_interjection_finished() -> void:
|
||||||
|
currently_playing.stop()
|
||||||
|
File diff suppressed because one or more lines are too long
@ -7,26 +7,96 @@ extends Node2D
|
|||||||
|
|
||||||
@export var vies = 3
|
@export var vies = 3
|
||||||
|
|
||||||
|
@onready var lights: Node2D = $Lights
|
||||||
|
|
||||||
|
@onready var wrong_hack: Interactible = %WrongHack
|
||||||
|
@onready var right_hack: Interactible = %RightHack
|
||||||
|
|
||||||
|
@onready var wrong_door: Interactible = $GetOutDoors/WrongDoor
|
||||||
|
@onready var right_door: Interactible = $GetOutDoors/RightDoor
|
||||||
|
|
||||||
|
@onready var timer_between_vo: Timer = $TimerBetweenVO
|
||||||
|
var is_interjection_next = false
|
||||||
|
var current_info: int = 0
|
||||||
|
|
||||||
|
@onready var vo_prise_tiree: AudioStreamPlayer2D = $Hack/VOPriseTiree
|
||||||
|
@onready var vo_interjection: AudioStreamPlayer2D = $Hack/VOInterjection
|
||||||
|
@onready var interact: AudioStreamPlayer2D = $Player/Interact
|
||||||
|
@onready var vo_trop_proche: AudioStreamPlayer2D = $Hack/VOTropProche
|
||||||
|
@onready var vo_player_1: AudioStreamPlayer2D = $Hack/VOPlayer1
|
||||||
|
@onready var vo_player_2: AudioStreamPlayer2D = $Hack/VOPlayer2
|
||||||
|
@onready var vo_player_3: AudioStreamPlayer2D = $Hack/VOPlayer3
|
||||||
|
@onready var vo_player_4: AudioStreamPlayer2D = $Hack/VOPlayer4
|
||||||
|
@onready var vo_player_5: AudioStreamPlayer2D = $Hack/VOPlayer5
|
||||||
|
@onready var vo_player_6: AudioStreamPlayer2D = $Hack/VOPlayer6
|
||||||
|
@onready var vo_player_7: AudioStreamPlayer2D = $Hack/VOPlayer7
|
||||||
|
@onready var vo_player_8: AudioStreamPlayer2D = $Hack/VOPlayer8
|
||||||
|
@onready var vo_player_9: AudioStreamPlayer2D = $Hack/VOPlayer9
|
||||||
|
@onready var vo_player_10: AudioStreamPlayer2D = $Hack/VOPlayer10
|
||||||
|
var vo_players: Array[AudioStreamPlayer2D] = []
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
GUIDE.enable_mapping_context(base_mode)
|
GUIDE.enable_mapping_context(base_mode)
|
||||||
|
wrong_hack.activate()
|
||||||
|
right_hack.deactivate()
|
||||||
|
wrong_door.activate()
|
||||||
|
right_door.deactivate()
|
||||||
|
|
||||||
|
vo_players.append(vo_player_1)
|
||||||
|
vo_players.append(vo_player_2)
|
||||||
|
vo_players.append(vo_player_3)
|
||||||
|
vo_players.append(vo_player_4)
|
||||||
|
vo_players.append(vo_player_5)
|
||||||
|
vo_players.append(vo_player_6)
|
||||||
|
vo_players.append(vo_player_7)
|
||||||
|
vo_players.append(vo_player_8)
|
||||||
|
vo_players.append(vo_player_9)
|
||||||
|
vo_players.append(vo_player_10)
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
func _on_prise_interacted(event_id: String) -> void:
|
||||||
func _process(delta: float) -> void:
|
wrong_hack.deactivate()
|
||||||
pass
|
right_hack.activate()
|
||||||
|
for light in lights.get_children():
|
||||||
|
light.visible = false
|
||||||
|
|
||||||
|
func made_mistake() -> void:
|
||||||
func _on_interactible_triggered(event_id: String) -> void:
|
|
||||||
vies -= 1
|
vies -= 1
|
||||||
if vies == 0:
|
if vies == 0:
|
||||||
SceneLoader.load_scene(golé)
|
SceneLoader.load_scene(golé)
|
||||||
|
|
||||||
|
func _on_failed_hack(event_id: String) -> void:
|
||||||
|
made_mistake()
|
||||||
|
interact.play()
|
||||||
|
vo_trop_proche.play()
|
||||||
|
|
||||||
|
func _on_successful_hack(event_id: String) -> void:
|
||||||
|
right_door.activate()
|
||||||
|
wrong_door.deactivate()
|
||||||
|
interact.play()
|
||||||
|
vo_prise_tiree.play()
|
||||||
|
right_door.visible = true
|
||||||
|
|
||||||
|
func _on_interactible_triggered(event_id: String) -> void:
|
||||||
|
made_mistake()
|
||||||
|
interact.play()
|
||||||
|
|
||||||
func _on_wrong_door_event_triggered(event_id: String) -> void:
|
func _on_wrong_door_event_triggered(event_id: String) -> void:
|
||||||
SceneLoader.load_scene(golé)
|
SceneLoader.load_scene(golé)
|
||||||
|
|
||||||
|
|
||||||
func _on_right_door_event_triggered(event_id: String) -> void:
|
func _on_right_door_event_triggered(event_id: String) -> void:
|
||||||
SceneLoader.load_scene(next_level) # Replace with function body.
|
SceneLoader.load_scene(next_level) # Replace with function body.
|
||||||
|
|
||||||
|
func _on_timer_between_vo_timeout() -> void:
|
||||||
|
if is_interjection_next:
|
||||||
|
vo_interjection.play()
|
||||||
|
is_interjection_next = not is_interjection_next
|
||||||
|
return
|
||||||
|
|
||||||
|
if current_info >= len(vo_players):
|
||||||
|
return
|
||||||
|
|
||||||
|
vo_players[current_info].play()
|
||||||
|
current_info += 1
|
||||||
|
is_interjection_next = not is_interjection_next
|
||||||
|
File diff suppressed because one or more lines are too long
2642
scenes/indoors/last.tscn82889820894.tmp
Normal file
2642
scenes/indoors/last.tscn82889820894.tmp
Normal file
File diff suppressed because one or more lines are too long
2642
scenes/indoors/last.tscn82897242723.tmp
Normal file
2642
scenes/indoors/last.tscn82897242723.tmp
Normal file
File diff suppressed because one or more lines are too long
@ -20,6 +20,18 @@ signal event_confirmed(event_id: String)
|
|||||||
@onready var ok_button: Button = %OkButton
|
@onready var ok_button: Button = %OkButton
|
||||||
|
|
||||||
|
|
||||||
|
func activate() -> void:
|
||||||
|
visible = true
|
||||||
|
monitorable = true
|
||||||
|
monitoring = true
|
||||||
|
|
||||||
|
|
||||||
|
func deactivate() -> void:
|
||||||
|
visible = false
|
||||||
|
monitorable = false
|
||||||
|
monitoring = false
|
||||||
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
rich_text_label.visible = false
|
rich_text_label.visible = false
|
||||||
|
@ -17,12 +17,13 @@ shape = SubResource("CircleShape2D_oyfc1")
|
|||||||
|
|
||||||
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
||||||
z_index = 1000
|
z_index = 1000
|
||||||
offset_left = 6.0
|
offset_left = 10.0
|
||||||
offset_top = -17.0
|
offset_top = -29.0
|
||||||
offset_right = 128.0
|
offset_right = 132.0
|
||||||
offset_bottom = 23.0
|
offset_bottom = 11.0
|
||||||
theme_override_fonts/normal_font = ExtResource("2_u3pc4")
|
theme_override_fonts/normal_font = ExtResource("2_u3pc4")
|
||||||
text = "INTERACT"
|
theme_override_font_sizes/normal_font_size = 32
|
||||||
|
text = "INTERAGIR"
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
z_index = 1000
|
z_index = 1000
|
||||||
@ -81,14 +82,14 @@ unique_name_in_owner = true
|
|||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
text = "FUCK YES"
|
text = "CARRÉMENT!"
|
||||||
|
|
||||||
[node name="CancelButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
[node name="CancelButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
text = "OH HELL NAH"
|
text = "UNDO, UNDO!"
|
||||||
|
|
||||||
[node name="OkButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
[node name="OkButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
@ -96,7 +97,7 @@ visible = false
|
|||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
text = "Whoops..."
|
text = "Oups..."
|
||||||
|
|
||||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||||
|
@ -9,6 +9,7 @@ extends Node2D
|
|||||||
|
|
||||||
var is_interjection_next = false
|
var is_interjection_next = false
|
||||||
var current_info = 0
|
var current_info = 0
|
||||||
|
var is_over = false
|
||||||
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
|
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
|
||||||
|
|
||||||
@onready var vo_player_1: AudioStreamPlayer2D = $RightDoor/VOPlayer1
|
@onready var vo_player_1: AudioStreamPlayer2D = $RightDoor/VOPlayer1
|
||||||
@ -24,11 +25,26 @@ var current_info = 0
|
|||||||
@onready var vo_player_11: AudioStreamPlayer2D = $RightDoor/VOPlayer11
|
@onready var vo_player_11: AudioStreamPlayer2D = $RightDoor/VOPlayer11
|
||||||
@onready var vo_player_12: AudioStreamPlayer2D = $RightDoor/VOPlayer12
|
@onready var vo_player_12: AudioStreamPlayer2D = $RightDoor/VOPlayer12
|
||||||
@onready var vo_player_13: AudioStreamPlayer2D = $RightDoor/VOPlayer13
|
@onready var vo_player_13: AudioStreamPlayer2D = $RightDoor/VOPlayer13
|
||||||
|
var vo_players: Array[AudioStreamPlayer2D] = []
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
GUIDE.enable_mapping_context(base_mode)
|
GUIDE.enable_mapping_context(base_mode)
|
||||||
|
|
||||||
|
vo_players.append(vo_player_1)
|
||||||
|
vo_players.append(vo_player_2)
|
||||||
|
vo_players.append(vo_player_3)
|
||||||
|
vo_players.append(vo_player_4)
|
||||||
|
vo_players.append(vo_player_5)
|
||||||
|
vo_players.append(vo_player_6)
|
||||||
|
vo_players.append(vo_player_7)
|
||||||
|
vo_players.append(vo_player_8)
|
||||||
|
vo_players.append(vo_player_9)
|
||||||
|
vo_players.append(vo_player_10)
|
||||||
|
vo_players.append(vo_player_11)
|
||||||
|
vo_players.append(vo_player_12)
|
||||||
|
vo_players.append(vo_player_13)
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
@ -48,42 +64,12 @@ func _on_door_event_confirmed(event_id: String) -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_timer_between_vo_timeout() -> void:
|
func _on_timer_between_vo_timeout() -> void:
|
||||||
if is_interjection_next:
|
if is_over:
|
||||||
print("interjection")
|
|
||||||
vo_interjection.play()
|
vo_interjection.play()
|
||||||
is_interjection_next = not is_interjection_next
|
|
||||||
|
if current_info >= len(vo_players):
|
||||||
|
is_over = true
|
||||||
return
|
return
|
||||||
|
|
||||||
if current_info > 13:
|
vo_players[current_info].play()
|
||||||
return
|
|
||||||
|
|
||||||
print("info")
|
|
||||||
if current_info == 0:
|
|
||||||
vo_player_1.play()
|
|
||||||
if current_info == 1:
|
|
||||||
vo_player_2.play()
|
|
||||||
if current_info == 2:
|
|
||||||
vo_player_3.play()
|
|
||||||
if current_info == 3:
|
|
||||||
vo_player_4.play()
|
|
||||||
if current_info == 4:
|
|
||||||
vo_player_5.play()
|
|
||||||
if current_info == 5:
|
|
||||||
vo_player_6.play()
|
|
||||||
if current_info == 6:
|
|
||||||
vo_player_7.play()
|
|
||||||
if current_info == 7:
|
|
||||||
vo_player_8.play()
|
|
||||||
if current_info == 8:
|
|
||||||
vo_player_9.play()
|
|
||||||
if current_info == 9:
|
|
||||||
vo_player_10.play()
|
|
||||||
if current_info == 10:
|
|
||||||
vo_player_11.play()
|
|
||||||
if current_info == 11:
|
|
||||||
vo_player_12.play()
|
|
||||||
if current_info == 12:
|
|
||||||
vo_player_13.play()
|
|
||||||
|
|
||||||
current_info += 1
|
current_info += 1
|
||||||
is_interjection_next = not is_interjection_next
|
|
||||||
|
102
scenes/main.tscn
102
scenes/main.tscn
File diff suppressed because one or more lines are too long
@ -86,7 +86,7 @@ __HANDSHAKE OVER__
|
|||||||
__FINGERPRINT: NO-MECANIC__
|
__FINGERPRINT: NO-MECANIC__
|
||||||
/!\\ CONNEXION SECURE /!\\
|
/!\\ CONNEXION SECURE /!\\
|
||||||
---
|
---
|
||||||
BON SANG DINO SÉRIEUX, LA CIBLE EST PARTIE ET LA MISSION EST RATÉE!
|
VOUS AVEZ ÉTÉ DÉMASQUÉ-E...
|
||||||
"
|
"
|
||||||
vertical_alignment = 1
|
vertical_alignment = 1
|
||||||
autowrap_mode = 3
|
autowrap_mode = 3
|
||||||
|
132
scenes/text_wrappers/success.tscn
Normal file
132
scenes/text_wrappers/success.tscn
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
[gd_scene load_steps=5 format=3 uid="uid://c677s7iscqwpf"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bhhphcagggc1" path="res://template/scenes/credits/scrolling_credits.tscn" id="1_rvkw6"]
|
||||||
|
[ext_resource type="Script" uid="uid://bwr3tliac4mo2" path="res://scenes/text_wrappers/text_wrapper.gd" id="2_wp36u"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_menus_template/base/scenes/music_players/background_music_player.tscn" id="9_p2twt"]
|
||||||
|
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="10_4ecgc"]
|
||||||
|
|
||||||
|
[node name="Gole" instance=ExtResource("1_rvkw6")]
|
||||||
|
script = ExtResource("2_wp36u")
|
||||||
|
scene_to_trigger = "uid://domqqvcqatme5"
|
||||||
|
|
||||||
|
[node name="FailedAudio" type="AudioStreamPlayer2D" parent="." index="0"]
|
||||||
|
bus = &"VoiceOver"
|
||||||
|
|
||||||
|
[node name="AHAAudio" type="AudioStreamPlayer2D" parent="." index="1"]
|
||||||
|
autoplay = true
|
||||||
|
bus = &"VoiceOver"
|
||||||
|
|
||||||
|
[node name="BackgroundMusicPlayer" parent="." index="2" instance=ExtResource("9_p2twt")]
|
||||||
|
bus = &"Cinematique"
|
||||||
|
|
||||||
|
[node name="BackgroundColor" type="ColorRect" parent="." index="3"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
color = Color(0, 0, 0, 1)
|
||||||
|
|
||||||
|
[node name="BackgroundTextureRect" type="TextureRect" parent="." index="4"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
expand_mode = 1
|
||||||
|
stretch_mode = 5
|
||||||
|
|
||||||
|
[node name="ScrollContainer" parent="." index="5"]
|
||||||
|
visible = false
|
||||||
|
scroll_vertical = 0
|
||||||
|
|
||||||
|
[node name="CenterContainer" type="CenterContainer" parent="." index="6"]
|
||||||
|
layout_mode = 0
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
mouse_filter = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer" index="0"]
|
||||||
|
custom_minimum_size = Vector2(600, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Message" type="Label" parent="CenterContainer/VBoxContainer" index="0"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
custom_minimum_size = Vector2(360, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "__CALL IN PROGRESS__
|
||||||
|
---
|
||||||
|
__HANDSHAKE OVER__
|
||||||
|
__FINGERPRINT: NO-MECANIC__
|
||||||
|
/!\\ CONNEXION SECURE /!\\
|
||||||
|
---
|
||||||
|
VOUS AVEZ RÉUSSI!
|
||||||
|
"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
vertical_alignment = 1
|
||||||
|
autowrap_mode = 3
|
||||||
|
|
||||||
|
[node name="CenterContainer" type="CenterContainer" parent="CenterContainer/VBoxContainer" index="1"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer/CenterContainer" index="0"]
|
||||||
|
custom_minimum_size = Vector2(256, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_vertical = 3
|
||||||
|
theme_override_constants/separation = 16
|
||||||
|
script = ExtResource("10_4ecgc")
|
||||||
|
|
||||||
|
[node name="AcceptButton1" type="Button" parent="CenterContainer/VBoxContainer/CenterContainer/HBoxContainer" index="0"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "TROP FORT DINO"
|
||||||
|
|
||||||
|
[node name="AcceptButton2" type="Button" parent="CenterContainer/VBoxContainer/CenterContainer/HBoxContainer" index="1"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
text = "JE SUIS UN-E ESPION-NE"
|
||||||
|
|
||||||
|
[node name="EndMessagePanel" type="Panel" parent="CenterContainer" index="1"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
|
custom_minimum_size = Vector2(360, 120)
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="StartConnexion" type="Timer" parent="." index="7"]
|
||||||
|
wait_time = 0.5
|
||||||
|
one_shot = true
|
||||||
|
autostart = true
|
||||||
|
|
||||||
|
[node name="FurtherConnexion" type="Timer" parent="." index="8"]
|
||||||
|
wait_time = 0.5
|
||||||
|
one_shot = true
|
||||||
|
|
||||||
|
[node name="TextStart" type="Timer" parent="." index="9"]
|
||||||
|
one_shot = true
|
||||||
|
|
||||||
|
[node name="TimeBetweenWords" type="Timer" parent="." index="10"]
|
||||||
|
wait_time = 0.15
|
||||||
|
|
||||||
|
[node name="TimeBeforeShowButtons" type="Timer" parent="." index="11"]
|
||||||
|
wait_time = 2.0
|
||||||
|
one_shot = true
|
||||||
|
|
||||||
|
[connection signal="pressed" from="CenterContainer/VBoxContainer/CenterContainer/HBoxContainer/AcceptButton1" to="." method="start_mission"]
|
||||||
|
[connection signal="pressed" from="CenterContainer/VBoxContainer/CenterContainer/HBoxContainer/AcceptButton2" to="." method="start_mission"]
|
||||||
|
[connection signal="timeout" from="StartConnexion" to="." method="_on_start_connexion_timeout"]
|
||||||
|
[connection signal="timeout" from="FurtherConnexion" to="." method="_on_further_connexion_timeout"]
|
||||||
|
[connection signal="timeout" from="TextStart" to="." method="_on_text_start_timeout"]
|
||||||
|
[connection signal="timeout" from="TimeBetweenWords" to="." method="_on_time_between_words_timeout"]
|
||||||
|
[connection signal="timeout" from="TimeBeforeShowButtons" to="." method="_on_time_before_show_buttons_timeout"]
|
@ -43,7 +43,7 @@ func _on_further_connexion_timeout() -> void:
|
|||||||
func _on_text_start_timeout() -> void:
|
func _on_text_start_timeout() -> void:
|
||||||
message.text = ""
|
message.text = ""
|
||||||
time_before_show_buttons.start()
|
time_before_show_buttons.start()
|
||||||
failed_audio.play()
|
# failed_audio.play()
|
||||||
time_between_words.start()
|
time_between_words.start()
|
||||||
|
|
||||||
func _on_time_between_words_timeout() -> void:
|
func _on_time_between_words_timeout() -> void:
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
[gd_scene load_steps=18 format=3 uid="uid://ck5glr84c7e25"]
|
[gd_scene load_steps=19 format=3 uid="uid://ck5glr84c7e25"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c6k5nnpbypshi" path="res://addons/maaacks_menus_template/base/scenes/menus/main_menu/main_menu.tscn" id="1_iaw2i"]
|
[ext_resource type="PackedScene" uid="uid://c6k5nnpbypshi" path="res://addons/maaacks_menus_template/base/scenes/menus/main_menu/main_menu.tscn" id="1_iaw2i"]
|
||||||
[ext_resource type="Script" uid="uid://b45edjepvx1qx" path="res://template/scenes/menus/main_menu/main_menu_with_animations.gd" id="2_mcwxw"]
|
[ext_resource type="Script" uid="uid://b45edjepvx1qx" path="res://template/scenes/menus/main_menu/main_menu_with_animations.gd" id="2_mcwxw"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cuyyhte8hennl" path="res://template/scenes/menus/options_menu/master_options_menu_with_tabs.tscn" id="3_p7afn"]
|
[ext_resource type="PackedScene" uid="uid://cuyyhte8hennl" path="res://template/scenes/menus/options_menu/master_options_menu_with_tabs.tscn" id="3_p7afn"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b7v0tjak702f1" path="res://template/scenes/credits/scrollable_credits.tscn" id="4_tsej0"]
|
[ext_resource type="PackedScene" uid="uid://b7v0tjak702f1" path="res://template/scenes/credits/scrollable_credits.tscn" id="4_tsej0"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://c6n57rs4s1kqj" path="res://assets/Audio/MUS_MENU_loop.ogg" id="5_mcwxw"]
|
||||||
|
|
||||||
[sub_resource type="Animation" id="1"]
|
[sub_resource type="Animation" id="1"]
|
||||||
resource_name = "Intro"
|
resource_name = "Intro"
|
||||||
@ -365,9 +366,6 @@ tree_root = SubResource("AnimationNodeStateMachine_vikuh")
|
|||||||
anim_player = NodePath("../MenuAnimationPlayer")
|
anim_player = NodePath("../MenuAnimationPlayer")
|
||||||
parameters/conditions/intro_done = false
|
parameters/conditions/intro_done = false
|
||||||
|
|
||||||
[node name="BackgroundMusicPlayer" parent="." index="3"]
|
|
||||||
bus = &"Master"
|
|
||||||
|
|
||||||
[node name="VersionContainer" parent="VersionMargin" index="0"]
|
[node name="VersionContainer" parent="VersionMargin" index="0"]
|
||||||
modulate = Color(1, 1, 1, 0)
|
modulate = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
@ -407,4 +405,8 @@ text = "CREDITS"
|
|||||||
[node name="ExitButton" parent="MenuContainer/MenuButtonsMargin/MenuButtonsContainer/MenuButtonsBoxContainer" index="4"]
|
[node name="ExitButton" parent="MenuContainer/MenuButtonsMargin/MenuButtonsContainer/MenuButtonsBoxContainer" index="4"]
|
||||||
text = "EXIT"
|
text = "EXIT"
|
||||||
|
|
||||||
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." index="10"]
|
||||||
|
stream = ExtResource("5_mcwxw")
|
||||||
|
bus = &"Music"
|
||||||
|
|
||||||
[connection signal="pressed" from="MenuContainer/MenuButtonsMargin/MenuButtonsContainer/MenuButtonsBoxContainer/ContinueGameButton" to="." method="_on_continue_game_button_pressed"]
|
[connection signal="pressed" from="MenuContainer/MenuButtonsMargin/MenuButtonsContainer/MenuButtonsBoxContainer/ContinueGameButton" to="." method="_on_continue_game_button_pressed"]
|
||||||
|
Reference in New Issue
Block a user