3 Commits

Author SHA1 Message Date
a51c4b82ae feat: new defeat screen and new indoors scene
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 7s
Create tag and build when new code gets to main / Export (push) Successful in 2m17s
2025-06-28 16:18:17 +02:00
aa6a5ca964 feat: wrong building scene
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 2m17s
2025-06-28 14:33:47 +02:00
f365450590 feat: sound for intro
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 2m19s
2025-06-28 13:02:47 +02:00
17 changed files with 2148 additions and 12 deletions

Binary file not shown.

View 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

Binary file not shown.

BIN
assets/light.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

34
assets/light.webp.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dna7ld7qgab32"
path="res://.godot/imported/light.webp-d35799de8fb0c49b55296f910078c3f9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/light.webp"
dest_files=["res://.godot/imported/light.webp-d35799de8fb0c49b55296f910078c3f9.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

33
default_bus_layout.tres Normal file
View 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"

View File

@ -62,3 +62,4 @@ copy_path="res://template"
textures/canvas_textures/default_texture_filter=0 textures/canvas_textures/default_texture_filter=0
textures/vram_compression/import_etc2_astc=true textures/vram_compression/import_etc2_astc=true
environment/defaults/default_clear_color=Color(0, 0, 0, 1)

24
scenes/indoors/bar.gd Normal file
View File

@ -0,0 +1,24 @@
extends Node2D
@export_file("*.tscn") var golé: String
@export_file("*.tscn") var next_level: String
@export var base_mode: GUIDEMappingContext
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
GUIDE.enable_mapping_context(base_mode)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_interactible_triggered(event_id: String) -> void:
if event_id == "right":
SceneLoader.load_scene(next_level)
return
SceneLoader.load_scene(golé)

View File

@ -0,0 +1 @@
uid://cjo7sxy5vy7bc

1766
scenes/indoors/bar.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,8 @@
extends Node2D extends Node2D
@export_file("*.tscn") var wrong_building: String
@export_file("*.tscn") var next_level: String
@export var base_mode: GUIDEMappingContext @export var base_mode: GUIDEMappingContext
@ -14,4 +17,8 @@ func _process(delta: float) -> void:
func _on_door_event_triggered(event_id: String) -> void: func _on_door_event_triggered(event_id: String) -> void:
print(event_id) if event_id == "right":
SceneLoader.load_scene(next_level)
return
SceneLoader.load_scene(wrong_building)

View File

@ -722,6 +722,8 @@ sources/0 = SubResource("TileSetAtlasSource_tbgi4")
[node name="Main" type="Node2D"] [node name="Main" type="Node2D"]
script = ExtResource("1_0wfyh") script = ExtResource("1_0wfyh")
wrong_building = "uid://eh3y4s4qad8m"
next_level = "uid://b8uo8e7x1frsc"
base_mode = ExtResource("2_sugp2") base_mode = ExtResource("2_sugp2")
[node name="Background" type="TileMapLayer" parent="."] [node name="Background" type="TileMapLayer" parent="."]
@ -745,20 +747,21 @@ event = "wrong"
[node name="Sprite2D" type="Sprite2D" parent="WrongDoor"] [node name="Sprite2D" type="Sprite2D" parent="WrongDoor"]
texture = ExtResource("5_tbgi4") texture = ExtResource("5_tbgi4")
region_enabled = true region_enabled = true
region_rect = Rect2(238, 170, 16, 16) region_rect = Rect2(255, 204, 16, 16)
[node name="RightDoor" parent="." instance=ExtResource("5_tefeu")] [node name="RightDoor" parent="." instance=ExtResource("5_tefeu")]
position = Vector2(424, 8) position = Vector2(424, 8)
message = "Entrer dans l'hotel ?" message = "Entrer dans l'hotel ?"
interact_text = "porte"
event = "right" event = "right"
[node name="Sprite2D" type="Sprite2D" parent="RightDoor"] [node name="Sprite2D" type="Sprite2D" parent="RightDoor"]
texture = ExtResource("5_tbgi4") texture = ExtResource("5_tbgi4")
region_enabled = true region_enabled = true
region_rect = Rect2(238, 170, 16, 16) region_rect = Rect2(255, 170, 16, 16)
[node name="Player" parent="." instance=ExtResource("1_o5qli")] [node name="Player" parent="." instance=ExtResource("1_o5qli")]
position = Vector2(320, 202) position = Vector2(123, 278)
walk_speed = 100.0 walk_speed = 100.0
[node name="DecoOverlay" type="TileMapLayer" parent="."] [node name="DecoOverlay" type="TileMapLayer" parent="."]

View File

@ -0,0 +1,124 @@
[gd_scene load_steps=5 format=3 uid="uid://cgql2prrr5cj7"]
[ext_resource type="PackedScene" uid="uid://bhhphcagggc1" path="res://template/scenes/credits/scrolling_credits.tscn" id="1_a1vv7"]
[ext_resource type="Script" uid="uid://bwr3tliac4mo2" path="res://scenes/text_wrappers/text_wrapper.gd" id="2_at5ku"]
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_menus_template/base/scenes/music_players/background_music_player.tscn" id="3_gqt46"]
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="4_uu3cc"]
[node name="WrongBuilding" instance=ExtResource("1_a1vv7")]
script = ExtResource("2_at5ku")
scene_to_trigger = "uid://ck5glr84c7e25"
[node name="BackgroundMusicPlayer" parent="." index="0" instance=ExtResource("3_gqt46")]
bus = &"Cinematique"
[node name="BackgroundColor" type="ColorRect" parent="." index="1"]
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="2"]
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="3"]
visible = false
scroll_vertical = 0
[node name="CenterContainer" type="CenterContainer" parent="." index="4"]
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 /!\\
---
DINO SÉRIEUX TU AS TROP FAIT LE RIGOLO, TU T'ES FAIT GOLÉ COMME UN BLEU!
"
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("4_uu3cc")
[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 = "GAME OVER"
[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 = "TRY AGAIN"
[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="5"]
wait_time = 0.5
one_shot = true
autostart = true
[node name="FurtherConnexion" type="Timer" parent="." index="6"]
wait_time = 0.5
one_shot = true
[node name="TextStart" type="Timer" parent="." index="7"]
one_shot = true
[node name="TimeBetweenWords" type="Timer" parent="." index="8"]
wait_time = 0.15
[node name="TimeBeforeShowButtons" type="Timer" parent="." index="9"]
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"]

View File

@ -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/text_wrapper.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
@ -60,7 +62,7 @@ __FINGERPRINT: NO-MECANIC__
/!\\ CONNEXION SECURE /!\\ /!\\ CONNEXION SECURE /!\\
--- ---
VOTRE NOM DE CODE POUR CETTE MISSION: DINO SÉRIEUX. VOTRE NOM DE CODE POUR CETTE MISSION: DINO SÉRIEUX.
VOTRE BUT: REJOINDRE LAGENTE DINO LOGHORÉE QUI EST SOUS COUVERTURE DANS LA MÉGACORPORATION ONID. DEPUIS DES MOIS, ELLE CULTIVE UN RAPPORT AVEC LA CIBLE, LA CEO DE ONID, AFIN DE POUVOIR LA DISTRAIRE AUJOURD'HUI. VOTRE BUT: REJOINDRE L AGENTE DINO LOGHORÉE QUI EST SOUS COUVERTURE DANS LA MÉGACORPORATION ONID. DEPUIS DES MOIS, ELLE CULTIVE UN RAPPORT AVEC LA CIBLE, LA CEO DE ONID, AFIN DE POUVOIR LA DISTRAIRE AUJOURD'HUI.
SUIVEZ SES INSTRUCTIONS DANS L'OREILLETTE, ET VOLEZ LES DONNÉES SAUVEGARDÉES SUR LA CIBLE. AVEC CES DONNÉES, NOUS EXPOSERONS LES MALVERSATIONS DE LA MÉGACORPORATION ONID. SUIVEZ SES INSTRUCTIONS DANS L'OREILLETTE, ET VOLEZ LES DONNÉES SAUVEGARDÉES SUR LA CIBLE. AVEC CES DONNÉES, NOUS EXPOSERONS LES MALVERSATIONS DE LA MÉGACORPORATION ONID.
@ -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

View File

@ -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

View File

@ -0,0 +1,124 @@
[gd_scene load_steps=5 format=3 uid="uid://eh3y4s4qad8m"]
[ext_resource type="PackedScene" uid="uid://bhhphcagggc1" path="res://template/scenes/credits/scrolling_credits.tscn" id="1_o8vp5"]
[ext_resource type="Script" uid="uid://bwr3tliac4mo2" path="res://scenes/text_wrappers/text_wrapper.gd" id="2_fg6t0"]
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_menus_template/base/scenes/music_players/background_music_player.tscn" id="3_fs5lg"]
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="5_0ltfy"]
[node name="WrongBuilding" instance=ExtResource("1_o8vp5")]
script = ExtResource("2_fg6t0")
scene_to_trigger = "uid://ck5glr84c7e25"
[node name="BackgroundMusicPlayer" parent="." index="0" instance=ExtResource("3_fs5lg")]
bus = &"Cinematique"
[node name="BackgroundColor" type="ColorRect" parent="." index="1"]
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="2"]
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="3"]
visible = false
scroll_vertical = 0
[node name="CenterContainer" type="CenterContainer" parent="." index="4"]
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 /!\\
---
DINO SÉRIEUX TU AS TROP FAIT LE RIGOLO, TU T'ES TROMPÉ DE BATIMENT!
"
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("5_0ltfy")
[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 = "GAME OVER"
[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 = "TRY AGAIN"
[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="5"]
wait_time = 0.5
one_shot = true
autostart = true
[node name="FurtherConnexion" type="Timer" parent="." index="6"]
wait_time = 0.5
one_shot = true
[node name="TextStart" type="Timer" parent="." index="7"]
one_shot = true
[node name="TimeBetweenWords" type="Timer" parent="." index="8"]
wait_time = 0.15
[node name="TimeBeforeShowButtons" type="Timer" parent="." index="9"]
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"]