generated from SGDA/GodotExampleProject
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c767f88fcd | |||
a51c4b82ae |
Binary file not shown.
BIN
assets/garance/EGJ-BAR.png
(Stored with Git LFS)
Normal file
BIN
assets/garance/EGJ-BAR.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/garance/EGJ-BAR.png.import
Normal file
34
assets/garance/EGJ-BAR.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d31fkxosknhli"
|
||||
path="res://.godot/imported/EGJ-BAR.png-477f6d9b497ee174371ffda65d2826e8.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/garance/EGJ-BAR.png"
|
||||
dest_files=["res://.godot/imported/EGJ-BAR.png-477f6d9b497ee174371ffda65d2826e8.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/light.webp
Normal file
BIN
assets/light.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
34
assets/light.webp.import
Normal file
34
assets/light.webp.import
Normal 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
|
@ -62,3 +62,4 @@ copy_path="res://template"
|
||||
|
||||
textures/canvas_textures/default_texture_filter=0
|
||||
textures/vram_compression/import_etc2_astc=true
|
||||
environment/defaults/default_clear_color=Color(0, 0, 0, 1)
|
||||
|
32
scenes/indoors/bar.gd
Normal file
32
scenes/indoors/bar.gd
Normal file
@ -0,0 +1,32 @@
|
||||
extends Node2D
|
||||
|
||||
@export_file("*.tscn") var golé: String
|
||||
@export_file("*.tscn") var next_level: String
|
||||
|
||||
@export var base_mode: GUIDEMappingContext
|
||||
|
||||
@export var vies = 3
|
||||
|
||||
|
||||
# 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:
|
||||
vies -= 1
|
||||
if vies == 0:
|
||||
SceneLoader.load_scene(golé)
|
||||
|
||||
|
||||
func _on_wrong_door_event_triggered(event_id: String) -> void:
|
||||
SceneLoader.load_scene(golé)
|
||||
|
||||
|
||||
func _on_right_door_event_triggered(event_id: String) -> void:
|
||||
SceneLoader.load_scene(next_level) # Replace with function body.
|
1
scenes/indoors/bar.gd.uid
Normal file
1
scenes/indoors/bar.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://cjo7sxy5vy7bc
|
2417
scenes/indoors/bar.tscn
Normal file
2417
scenes/indoors/bar.tscn
Normal file
File diff suppressed because one or more lines are too long
@ -13,6 +13,12 @@ signal event_triggered(event_id: String)
|
||||
@onready var message_box: Label = %MessageBox
|
||||
@onready var interact_box: RichTextLabel = $RichTextLabel
|
||||
|
||||
@export var is_item = false
|
||||
@onready var confirm_button: Button = %ConfirmButton
|
||||
@onready var cancel_button: Button = %CancelButton
|
||||
@onready var ok_button: Button = %OkButton
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
rich_text_label.visible = false
|
||||
@ -22,6 +28,11 @@ func _ready() -> void:
|
||||
if not interact_text.is_empty():
|
||||
interact_box.text = interact_text.to_upper()
|
||||
|
||||
if is_item:
|
||||
confirm_button.visible = false
|
||||
cancel_button.visible = false
|
||||
ok_button.visible = true
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
rich_text_label.visible = true
|
||||
|
||||
@ -31,9 +42,12 @@ func _on_body_exited(body: Node2D) -> void:
|
||||
|
||||
func show_confirm():
|
||||
confirm_panel.visible = true
|
||||
if is_item:
|
||||
event_triggered.emit(event)
|
||||
|
||||
func _on_confirm_button_pressed() -> void:
|
||||
confirm_panel.visible = false
|
||||
if not is_item:
|
||||
event_triggered.emit(event)
|
||||
|
||||
func _on_cancel_button_pressed() -> void:
|
||||
|
@ -25,6 +25,7 @@ theme_override_fonts/normal_font = ExtResource("2_u3pc4")
|
||||
text = "INTERACT"
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
z_index = 1000
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@ -54,13 +55,14 @@ grow_vertical = 2
|
||||
|
||||
[node name="MessageBox" type="Label" parent="CenterContainer/ConfirmPanel/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(256, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "ENTRER DANS LA POSTE ?"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="CenterContainer/ConfirmPanel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
@ -88,7 +90,16 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "OH HELL NAH"
|
||||
|
||||
[node name="OkButton" type="Button" parent="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "Whoops..."
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
[connection signal="pressed" from="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer/ConfirmButton" to="." method="_on_confirm_button_pressed"]
|
||||
[connection signal="pressed" from="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer/CancelButton" to="." method="_on_cancel_button_pressed"]
|
||||
[connection signal="pressed" from="CenterContainer/ConfirmPanel/VBoxContainer/CenterContainer/HBoxContainer/OkButton" to="." method="_on_cancel_button_pressed"]
|
||||
|
File diff suppressed because one or more lines are too long
124
scenes/text_wrappers/gole.tscn
Normal file
124
scenes/text_wrappers/gole.tscn
Normal 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"]
|
Reference in New Issue
Block a user