generated from SGDA/GodotExampleProject
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f365450590 | |||
e6da2f34e6 |
BIN
assets/Audio/CIN_INTRO_Pitch mission.ogg
Normal file
BIN
assets/Audio/CIN_INTRO_Pitch mission.ogg
Normal file
Binary file not shown.
19
assets/Audio/CIN_INTRO_Pitch mission.ogg.import
Normal file
19
assets/Audio/CIN_INTRO_Pitch mission.ogg.import
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="oggvorbisstr"
|
||||||
|
type="AudioStreamOggVorbis"
|
||||||
|
uid="uid://dcylcol0nj0pv"
|
||||||
|
path="res://.godot/imported/CIN_INTRO_Pitch mission.ogg-4b569bdb43235b38f5baa7a3f9997ccb.oggvorbisstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/Audio/CIN_INTRO_Pitch mission.ogg"
|
||||||
|
dest_files=["res://.godot/imported/CIN_INTRO_Pitch mission.ogg-4b569bdb43235b38f5baa7a3f9997ccb.oggvorbisstr"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
33
default_bus_layout.tres
Normal file
33
default_bus_layout.tres
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
[gd_resource type="AudioBusLayout" format=3 uid="uid://cd43qm20mmsb4"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
bus/1/name = &"Cinematique"
|
||||||
|
bus/1/solo = false
|
||||||
|
bus/1/mute = false
|
||||||
|
bus/1/bypass_fx = false
|
||||||
|
bus/1/volume_db = 0.0
|
||||||
|
bus/1/send = &"Master"
|
||||||
|
bus/2/name = &"Character"
|
||||||
|
bus/2/solo = false
|
||||||
|
bus/2/mute = false
|
||||||
|
bus/2/bypass_fx = false
|
||||||
|
bus/2/volume_db = 0.0
|
||||||
|
bus/2/send = &"Master"
|
||||||
|
bus/3/name = &"VoiceOver"
|
||||||
|
bus/3/solo = false
|
||||||
|
bus/3/mute = false
|
||||||
|
bus/3/bypass_fx = false
|
||||||
|
bus/3/volume_db = 0.0
|
||||||
|
bus/3/send = &"Master"
|
||||||
|
bus/4/name = &"UI"
|
||||||
|
bus/4/solo = false
|
||||||
|
bus/4/mute = false
|
||||||
|
bus/4/bypass_fx = false
|
||||||
|
bus/4/volume_db = 0.0
|
||||||
|
bus/4/send = &"Master"
|
||||||
|
bus/5/name = &"Music"
|
||||||
|
bus/5/solo = false
|
||||||
|
bus/5/mute = false
|
||||||
|
bus/5/bypass_fx = false
|
||||||
|
bus/5/volume_db = 0.0
|
||||||
|
bus/5/send = &"Master"
|
@ -3,6 +3,7 @@ class_name Interactible
|
|||||||
|
|
||||||
# @export_file("*.tscn") var scene_to_trigger: String
|
# @export_file("*.tscn") var scene_to_trigger: String
|
||||||
@export var message: String
|
@export var message: String
|
||||||
|
@export var interact_text: String
|
||||||
@export var event: String
|
@export var event: String
|
||||||
|
|
||||||
signal event_triggered(event_id: String)
|
signal event_triggered(event_id: String)
|
||||||
@ -10,12 +11,16 @@ signal event_triggered(event_id: String)
|
|||||||
@onready var rich_text_label: RichTextLabel = $RichTextLabel
|
@onready var rich_text_label: RichTextLabel = $RichTextLabel
|
||||||
@onready var confirm_panel: Panel = %ConfirmPanel
|
@onready var confirm_panel: Panel = %ConfirmPanel
|
||||||
@onready var message_box: Label = %MessageBox
|
@onready var message_box: Label = %MessageBox
|
||||||
|
@onready var interact_box: RichTextLabel = $RichTextLabel
|
||||||
|
|
||||||
# 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
|
||||||
confirm_panel.visible = false
|
confirm_panel.visible = false
|
||||||
message_box.text = message.to_upper()
|
message_box.text = message.to_upper()
|
||||||
|
|
||||||
|
if not interact_text.is_empty():
|
||||||
|
interact_box.text = interact_text.to_upper()
|
||||||
|
|
||||||
func _on_body_entered(body: Node2D) -> void:
|
func _on_body_entered(body: Node2D) -> void:
|
||||||
rich_text_label.visible = true
|
rich_text_label.visible = true
|
||||||
|
@ -25,7 +25,6 @@ theme_override_fonts/normal_font = ExtResource("2_u3pc4")
|
|||||||
text = "INTERACT"
|
text = "INTERACT"
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
visible = false
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
@ -41,6 +40,7 @@ mouse_filter = 2
|
|||||||
|
|
||||||
[node name="ConfirmPanel" type="Panel" parent="CenterContainer"]
|
[node name="ConfirmPanel" type="Panel" parent="CenterContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
custom_minimum_size = Vector2(280, 120)
|
custom_minimum_size = Vector2(280, 120)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
|
@ -739,6 +739,7 @@ tile_set = SubResource("TileSet_tefeu")
|
|||||||
[node name="WrongDoor" parent="." instance=ExtResource("5_tefeu")]
|
[node name="WrongDoor" parent="." instance=ExtResource("5_tefeu")]
|
||||||
position = Vector2(191, 104)
|
position = Vector2(191, 104)
|
||||||
message = "entrer dans la poste ?"
|
message = "entrer dans la poste ?"
|
||||||
|
interact_text = "porte"
|
||||||
event = "wrong"
|
event = "wrong"
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="WrongDoor"]
|
[node name="Sprite2D" type="Sprite2D" parent="WrongDoor"]
|
||||||
|
@ -21,7 +21,6 @@ var text_showing = false
|
|||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
text_split = message.text.split("---")
|
text_split = message.text.split("---")
|
||||||
text_fine_split = text_split[2].split(" ")
|
text_fine_split = text_split[2].split(" ")
|
||||||
print(len(text_fine_split))
|
|
||||||
message.text = ""
|
message.text = ""
|
||||||
|
|
||||||
accept_button_1.visible = false
|
accept_button_1.visible = false
|
||||||
@ -34,7 +33,6 @@ func _on_start_connexion_timeout() -> void:
|
|||||||
message.text = text_split[0]
|
message.text = text_split[0]
|
||||||
further_connexion.start()
|
further_connexion.start()
|
||||||
|
|
||||||
|
|
||||||
func _on_further_connexion_timeout() -> void:
|
func _on_further_connexion_timeout() -> void:
|
||||||
message.text = text_split[1]
|
message.text = text_split[1]
|
||||||
text_start.start()
|
text_start.start()
|
||||||
@ -43,9 +41,9 @@ func _on_text_start_timeout() -> void:
|
|||||||
message.text = ""
|
message.text = ""
|
||||||
time_between_words.start()
|
time_between_words.start()
|
||||||
|
|
||||||
|
|
||||||
func _on_time_between_words_timeout() -> void:
|
func _on_time_between_words_timeout() -> void:
|
||||||
if text_fine_split.is_empty():
|
if text_fine_split.is_empty():
|
||||||
|
time_between_words.stop()
|
||||||
time_before_show_buttons.start()
|
time_before_show_buttons.start()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://djmvj0uqw26dg"]
|
[gd_scene load_steps=6 format=3 uid="uid://djmvj0uqw26dg"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://bhhphcagggc1" path="res://template/scenes/credits/scrolling_credits.tscn" id="1_ftj6e"]
|
[ext_resource type="PackedScene" uid="uid://bhhphcagggc1" path="res://template/scenes/credits/scrolling_credits.tscn" id="1_ftj6e"]
|
||||||
[ext_resource type="Script" uid="uid://bwr3tliac4mo2" path="res://scenes/text_wrappers/intro.gd" id="2_sbctf"]
|
[ext_resource type="Script" uid="uid://bwr3tliac4mo2" path="res://scenes/text_wrappers/intro.gd" id="2_sbctf"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_menus_template/base/scenes/music_players/background_music_player.tscn" id="3_pbsew"]
|
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_menus_template/base/scenes/music_players/background_music_player.tscn" id="3_pbsew"]
|
||||||
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="4_23spi"]
|
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="4_23spi"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://dcylcol0nj0pv" path="res://assets/Audio/CIN_INTRO_Pitch mission.ogg" id="4_mudqr"]
|
||||||
|
|
||||||
[node name="Intro" instance=ExtResource("1_ftj6e")]
|
[node name="Intro" instance=ExtResource("1_ftj6e")]
|
||||||
script = ExtResource("2_sbctf")
|
script = ExtResource("2_sbctf")
|
||||||
scene_to_trigger = "uid://s1cx1gvt4bed"
|
scene_to_trigger = "uid://s1cx1gvt4bed"
|
||||||
|
|
||||||
[node name="BackgroundMusicPlayer" parent="." index="0" instance=ExtResource("3_pbsew")]
|
[node name="BackgroundMusicPlayer" parent="." index="0" instance=ExtResource("3_pbsew")]
|
||||||
bus = &"Master"
|
stream = ExtResource("4_mudqr")
|
||||||
|
bus = &"Cinematique"
|
||||||
|
|
||||||
[node name="BackgroundColor" type="ColorRect" parent="." index="1"]
|
[node name="BackgroundColor" type="ColorRect" parent="." index="1"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
@ -117,7 +119,7 @@ wait_time = 7.0
|
|||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
[node name="TimeBetweenWords" type="Timer" parent="." index="8"]
|
[node name="TimeBetweenWords" type="Timer" parent="." index="8"]
|
||||||
wait_time = 0.41
|
wait_time = 0.4
|
||||||
|
|
||||||
[node name="TimeBeforeShowButtons" type="Timer" parent="." index="9"]
|
[node name="TimeBeforeShowButtons" type="Timer" parent="." index="9"]
|
||||||
wait_time = 2.0
|
wait_time = 2.0
|
||||||
|
Reference in New Issue
Block a user