generated from SGDA/GodotExampleProject
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
9c2bbd631f | |||
bd72931024 | |||
a853a5b11b | |||
0e4fe61d03 | |||
8c8996ee5c |
BIN
assets/garance/RectangleBlanc.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/RectangleBlanc.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/RectangleBlanc.png.import
Normal file
34
assets/garance/RectangleBlanc.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b7056kyfrlwyo"
|
||||
path="res://.godot/imported/RectangleBlanc.png-49aad6f81ba6468615261702b42fd584.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/garance/RectangleBlanc.png"
|
||||
dest_files=["res://.godot/imported/RectangleBlanc.png-49aad6f81ba6468615261702b42fd584.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,25 +5,25 @@ bus/1/name = &"Cinematique"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = -10.5185
|
||||
bus/1/volume_db = -3.43255
|
||||
bus/1/send = &"Master"
|
||||
bus/2/name = &"VoiceOver"
|
||||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = -0.030508
|
||||
bus/2/volume_db = 2.1515
|
||||
bus/2/send = &"Master"
|
||||
bus/3/name = &"UI"
|
||||
bus/3/solo = false
|
||||
bus/3/mute = false
|
||||
bus/3/bypass_fx = false
|
||||
bus/3/volume_db = -2.91905
|
||||
bus/3/volume_db = -2.51026
|
||||
bus/3/send = &"Master"
|
||||
bus/4/name = &"Music"
|
||||
bus/4/solo = false
|
||||
bus/4/mute = false
|
||||
bus/4/bypass_fx = false
|
||||
bus/4/volume_db = -10.0741
|
||||
bus/4/volume_db = -3.11736
|
||||
bus/4/send = &"Master"
|
||||
bus/5/name = &"Ambiance"
|
||||
bus/5/solo = false
|
||||
|
@ -18,6 +18,8 @@ extends Node2D
|
||||
@onready var timer_between_vo: Timer = $TimerBetweenVO
|
||||
var is_interjection_next = false
|
||||
var current_info: int = 0
|
||||
var is_over = false
|
||||
var currently_playing: AudioStreamPlayer2D
|
||||
|
||||
@onready var vo_prise_tiree: AudioStreamPlayer2D = $Hack/VOPriseTiree
|
||||
@onready var vo_interjection: AudioStreamPlayer2D = $Hack/VOInterjection
|
||||
@ -54,6 +56,10 @@ func _ready() -> void:
|
||||
vo_players.append(vo_player_9)
|
||||
vo_players.append(vo_player_10)
|
||||
|
||||
currently_playing = vo_players[current_info]
|
||||
vo_players[current_info].play()
|
||||
current_info += 1
|
||||
|
||||
|
||||
func _on_prise_interacted(event_id: String) -> void:
|
||||
wrong_hack.deactivate()
|
||||
@ -67,15 +73,21 @@ func made_mistake() -> void:
|
||||
SceneLoader.load_scene(golé)
|
||||
|
||||
func _on_failed_hack(event_id: String) -> void:
|
||||
if currently_playing != null and currently_playing.playing:
|
||||
currently_playing.stop()
|
||||
made_mistake()
|
||||
interact.play()
|
||||
vo_trop_proche.play()
|
||||
currently_playing = vo_trop_proche
|
||||
|
||||
func _on_successful_hack(event_id: String) -> void:
|
||||
if currently_playing != null and currently_playing.playing:
|
||||
currently_playing.stop()
|
||||
right_door.activate()
|
||||
wrong_door.deactivate()
|
||||
interact.play()
|
||||
vo_prise_tiree.play()
|
||||
currently_playing = vo_prise_tiree
|
||||
right_door.visible = true
|
||||
|
||||
func _on_interactible_triggered(event_id: String) -> void:
|
||||
@ -89,14 +101,19 @@ func _on_right_door_event_triggered(event_id: String) -> void:
|
||||
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
|
||||
if currently_playing != null and currently_playing.playing:
|
||||
return
|
||||
|
||||
if is_over:
|
||||
vo_interjection.play()
|
||||
|
||||
if current_info >= len(vo_players):
|
||||
is_over = true
|
||||
return
|
||||
|
||||
currently_playing = vo_players[current_info]
|
||||
vo_players[current_info].play()
|
||||
current_info += 1
|
||||
is_interjection_next = not is_interjection_next
|
||||
|
||||
func _on_vo_trop_proche_finished() -> void:
|
||||
pass
|
||||
|
File diff suppressed because one or more lines are too long
650
scenes/main.tscn
650
scenes/main.tscn
File diff suppressed because one or more lines are too long
@ -166,8 +166,6 @@ script = ExtResource("1_dovo2")
|
||||
move = ExtResource("2_gmlin")
|
||||
interact = ExtResource("3_lvxji")
|
||||
|
||||
[node name="AudioListener2D" type="AudioListener2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 2)
|
||||
shape = SubResource("CapsuleShape2D_dovo2")
|
||||
|
Reference in New Issue
Block a user