Début d'introduction

This commit is contained in:
2025-06-05 00:49:14 +02:00
parent 7e18355408
commit d29f3e6151
15 changed files with 349 additions and 233 deletions
Binary file not shown.
+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://mi5v1uq78g7o"
path="res://.godot/imported/XanhMono-Italic.ttf-0e793ae2396790fa8769f584957eb932.fontdata"
[deps]
source_file="res://Art/XanhMono-Italic.ttf"
dest_files=["res://.godot/imported/XanhMono-Italic.ttf-0e793ae2396790fa8769f584957eb932.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
Binary file not shown.
+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://ckg5x0oonnjtn"
path="res://.godot/imported/XanhMono-Regular.ttf-7df0fa6b1f216f60ea4273e3a7ce2a72.fontdata"
[deps]
source_file="res://Art/XanhMono-Regular.ttf"
dest_files=["res://.godot/imported/XanhMono-Regular.ttf-7df0fa6b1f216f60ea4273e3a7ce2a72.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
-57
View File
@@ -41,60 +41,3 @@ size_flags_vertical = 3
size_flags_stretch_ratio = 0.25
texture = ExtResource("2_trxfw")
expand_mode = 1
[node name="Choices" type="GridContainer" parent="."]
layout_mode = 0
offset_left = 659.0
offset_top = 751.0
offset_right = 1288.0
offset_bottom = 915.0
columns = 3
[node name="PatientRoom1" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Patient Room 1"
[node name="PatientRoom2" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Patient Room 2
"
[node name="PatientRoom3" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Patient Room 3
"
[node name="IsolationRoom" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Isolation Room
"
[node name="MedicsOffice" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Medics Office
"
[node name="PsychiatristDesk" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Psychiatrist Desk"
[connection signal="pressed" from="Choices/PatientRoom1" to="." method="_on_patient_room_1_pressed"]
[connection signal="pressed" from="Choices/PatientRoom2" to="." method="_on_patient_room_2_pressed"]
+6 -4
View File
@@ -1,9 +1,10 @@
[gd_scene load_steps=5 format=3 uid="uid://buoev4bra11fe"]
[gd_scene load_steps=6 format=3 uid="uid://buoev4bra11fe"]
[ext_resource type="Script" path="res://main_hub.gd" id="1_rvfpd"]
[ext_resource type="PackedScene" uid="uid://cahspuhi43bx7" path="res://TitleScreen.tscn" id="2_3wmv1"]
[ext_resource type="PackedScene" uid="uid://chytk2cctjk3x" path="res://Office.tscn" id="3_whctb"]
[ext_resource type="PackedScene" uid="uid://dcjhx2g4d056v" path="res://Bedroom.tscn" id="4_4fm57"]
[ext_resource type="PackedScene" uid="uid://igkl2384rxt1" path="res://text_screens.tscn" id="5_85o5j"]
[node name="MainHub" type="Control"]
layout_mode = 3
@@ -13,6 +14,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_rvfpd")
title_screen = ExtResource("2_3wmv1")
office = ExtResource("3_whctb")
bedroom = ExtResource("4_4fm57")
TitleScreen = ExtResource("2_3wmv1")
Office = ExtResource("3_whctb")
Bedroom = ExtResource("4_4fm57")
TextScreens = ExtResource("5_85o5j")
-13
View File
@@ -1,13 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://up2loaxt0lju"]
[ext_resource type="Script" path="res://introduction.gd" id="1_60qbv"]
[node name="Introduction" type="CanvasLayer"]
script = ExtResource("1_60qbv")
[node name="RichTextLabel" type="RichTextLabel" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
+37 -10
View File
@@ -1,29 +1,40 @@
extends Control
@export var title_screen: PackedScene
@export var office: PackedScene
@export var bedroom: PackedScene
@export var TitleScreen: PackedScene
@export var Office: PackedScene
@export var Bedroom: PackedScene
@export var TextScreens: PackedScene
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
#Adding Scenes
var title_screen = title_screen.instantiate()
var office = office.instantiate()
var bedroom = bedroom.instantiate()
var title_screen = TitleScreen.instantiate()
var office = Office.instantiate()
var bedroom = Bedroom.instantiate()
var text_screens = TextScreens.instantiate()
add_child(title_screen)
add_child(office)
add_child(bedroom)
add_child(text_screens)
#Naming Scenes
title_screen.name = "TitleScreen"
office.name = "Office"
bedroom.name = "Bedroom"
text_screens.name = "TextScreens"
#Hiding Scenes
title_screen.hide()
office.hide()
bedroom.hide()
#Hiding Text_Screens
text_screens.hide()
for scene in $TextScreens/MarginContainer.get_children():
scene.hide()
$TextScreens/SkipContainer.hide()
title_screen.show()
#Connecting Signals
@@ -38,11 +49,27 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
# Starts a new game
func _on_new_game_pressed():
transition([$TitleScreen], [$TextScreens, $TextScreens/MarginContainer/TextIntro1, $TextScreens/SkipContainer])
await $TextScreens.slide_finished
transition([$TextScreens/MarginContainer/TextIntro1], [$TextScreens/MarginContainer/TextIntro2])
await $TextScreens.slide_finished
transition([$TextScreens/MarginContainer/TextIntro2], [$TextScreens/MarginContainer/TextIntro3])
await $TextScreens.slide_finished
transition([$TextScreens/MarginContainer/TextIntro3], [$TextScreens/MarginContainer/TextIntro4])
await $TextScreens.slide_finished
transition([$TextScreens/MarginContainer/TextIntro4], [$TextScreens/MarginContainer/TextIntro5])
# Takes care of fading transitions between scenes
func transition(scenes_to_hide, scenes_to_show):
TransitionScreen.transition()
await TransitionScreen.on_transition_finished
$TitleScreen.hide()
$Office.show()
for scene in scenes_to_hide:
scene.hide()
for scene in scenes_to_show:
scene.show()
+1 -9
View File
@@ -1,7 +1,6 @@
extends Control
signal patient_room_1_pressed
signal patient_room_2_pressed
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@@ -13,10 +12,3 @@ func _ready() -> void:
func _process(delta: float) -> void:
pass
func _on_patient_room_1_pressed():
emit_signal("patient_room_1_pressed")
print("Going to Patient Room 1...")
func _on_patient_room_2_pressed():
emit_signal("patient_room_2_pressed")
print("Going to Patient Room 2...")
-93
View File
@@ -1,93 +0,0 @@
[gd_scene load_steps=4 format=3 uid="uid://beybtmx1t3gy2"]
[ext_resource type="Texture2D" uid="uid://c3je4gir1qlot" path="res://Art/BlackScreen.png" id="1_8gyxv"]
[ext_resource type="Texture2D" uid="uid://c7vyp0s2ci7qf" path="res://Art/PatientRoom.jpg" id="2_qrcs6"]
[sub_resource type="GDScript" id="GDScript_ek6ji"]
script/source = "extends Control
signal leave_pressed
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_leave_pressed():
emit_signal(\"leave_pressed\")
print(\"Leaving Patient Room 1...\")
"
[node name="PatientRoom1" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_ek6ji")
[node name="Background" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="UpperBorder" type="TextureRect" parent="Background"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 0.25
texture = ExtResource("1_8gyxv")
expand_mode = 1
[node name="Background" type="TextureRect" parent="Background"]
layout_mode = 2
size_flags_vertical = 3
texture = ExtResource("2_qrcs6")
expand_mode = 1
[node name="LowerBorder" type="TextureRect" parent="Background"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 0.25
texture = ExtResource("1_8gyxv")
expand_mode = 1
[node name="Choices" type="GridContainer" parent="."]
layout_mode = 0
offset_left = 659.0
offset_top = 788.0
offset_right = 1288.0
offset_bottom = 893.0
columns = 3
[node name="Talk" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Talk"
[node name="Observe" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Observe
"
[node name="Leave" type="Button" parent="Choices"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 25
text = "Leave"
[connection signal="pressed" from="Choices/Leave" to="." method="_on_leave_pressed"]
-29
View File
@@ -1,29 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://csa7fjp03r83h"]
[ext_resource type="Texture2D" uid="uid://c1bq2kroefeoy" path="res://Art/PatientRoom2.jpg" id="3_echgr"]
[sub_resource type="GDScript" id="GDScript_xp8y3"]
script/source = "extends Control
signal leave_pressed
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_leave_pressed():
emit_signal(\"leave_pressed\")
print(\"Leaving Patient Room 2...\")
"
[node name="PatientRoom2"]
script = SubResource("GDScript_xp8y3")
[node name="Background" parent="Background" index="1"]
texture = ExtResource("3_echgr")
+1 -1
View File
@@ -16,8 +16,8 @@ config/features=PackedStringArray("4.3", "Forward Plus")
[autoload]
Global="*res://global.gd"
TransitionScreen="*res://transition_screen.tscn"
Global="*res://global.gd"
[display]
+9 -2
View File
@@ -1,12 +1,19 @@
extends CanvasLayer
@onready var text = $RichTextLabel
@onready var text_container = $MarginContainer/TextContainer
@onready var skip = $SkipContainer/SkipButton
signal slide_finished
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
text.add_text("Hello guys")
skip.pressed.connect(_on_skip_pressed)
pass # Replace with function body.
func _on_skip_pressed():
slide_finished.emit()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
+209
View File
@@ -0,0 +1,209 @@
[gd_scene load_steps=4 format=3 uid="uid://igkl2384rxt1"]
[ext_resource type="Script" path="res://text_screens.gd" id="1_16laq"]
[ext_resource type="FontFile" uid="uid://ckg5x0oonnjtn" path="res://Art/XanhMono-Regular.ttf" id="2_i0l2q"]
[ext_resource type="FontFile" uid="uid://mi5v1uq78g7o" path="res://Art/XanhMono-Italic.ttf" id="3_i5n2a"]
[node name="TextScreens" type="CanvasLayer"]
script = ExtResource("1_16laq")
[node name="ColorRect" type="ColorRect" parent="."]
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="MarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 100
theme_override_constants/margin_top = 100
theme_override_constants/margin_right = 100
theme_override_constants/margin_bottom = 100
[node name="TextIntro1" type="RichTextLabel" parent="MarginContainer"]
clip_contents = false
custom_minimum_size = Vector2(10, 0)
layout_mode = 2
theme_override_fonts/normal_font = ExtResource("2_i0l2q")
theme_override_fonts/mono_font = ExtResource("2_i0l2q")
theme_override_fonts/italics_font = ExtResource("3_i5n2a")
theme_override_font_sizes/bold_italics_font_size = 30
theme_override_font_sizes/italics_font_size = 30
theme_override_font_sizes/mono_font_size = 30
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 30
text = "French Republic, Paris, 12th October 2053
78 days since the Abnormality
It's been almost 3 months already since it all began.
We thought it as a mere pandemic, yet another crisis amongst the dozens we had to bear for the past decade.
A few hundred thousand deaths, twice the governmental lies, thrice the social media memes.
Add in a pinch of conspiracy, season abundantly with senseless blaming, and the media would eventually move on to the next money-grabbing controversy.
How i wish we still lived in those times."
tab_size = 8
[node name="TextIntro2" type="RichTextLabel" parent="MarginContainer"]
clip_contents = false
custom_minimum_size = Vector2(10, 0)
layout_mode = 2
theme_override_fonts/normal_font = ExtResource("2_i0l2q")
theme_override_fonts/mono_font = ExtResource("2_i0l2q")
theme_override_fonts/italics_font = ExtResource("3_i5n2a")
theme_override_font_sizes/bold_italics_font_size = 30
theme_override_font_sizes/italics_font_size = 30
theme_override_font_sizes/mono_font_size = 30
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 30
bbcode_enabled = true
text = "French Republic, Paris, 12th October 2053
78 days since the Abnormality
The nightmares came first. Whispers from afar, soft, humming, comforting even. Slowly seeping into one's mind.
And then, the unexplainable. Things that the mind cannot comprehend, cannot write nor speak.
The [i]Abnormal[/i].
Those with severe mental illnesses were the most vulnerable to It.
Every trained psychiatrist from Saigon to Paris swiftly waltzed to the afterlife last month, murdered by the very patients they were trying to help.
Deaths unbearable to witness, corpses disfigured beyond any rationality.
10 days ago, it started happening to the sane.
"
tab_size = 8
[node name="TextIntro3" type="RichTextLabel" parent="MarginContainer"]
clip_contents = false
custom_minimum_size = Vector2(10, 0)
layout_mode = 2
theme_override_fonts/normal_font = ExtResource("2_i0l2q")
theme_override_fonts/mono_font = ExtResource("2_i0l2q")
theme_override_fonts/italics_font = ExtResource("3_i5n2a")
theme_override_font_sizes/bold_italics_font_size = 30
theme_override_font_sizes/italics_font_size = 30
theme_override_font_sizes/mono_font_size = 30
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 30
bbcode_enabled = true
text = "French Republic, Paris, 12th October 2053
78 days since the Abnormality
Global curfew all around the globe.
Containment attempts by the military even though It seems to propagate regardless of any safety measure.
Mass executions.
I don't watch the news anymore.
Disinformation is a delicacy in times of boredom.
Now it tastes somewhere between bitter resentment and sour resignation.
Maybe science can save us. Probably not, but we have to believe. I have to believe. What other choice is there ?
"
tab_size = 8
[node name="TextIntro4" type="RichTextLabel" parent="MarginContainer"]
clip_contents = false
custom_minimum_size = Vector2(10, 0)
layout_mode = 2
theme_override_fonts/normal_font = ExtResource("2_i0l2q")
theme_override_fonts/mono_font = ExtResource("2_i0l2q")
theme_override_fonts/italics_font = ExtResource("3_i5n2a")
theme_override_font_sizes/bold_italics_font_size = 30
theme_override_font_sizes/italics_font_size = 30
theme_override_font_sizes/mono_font_size = 30
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 30
bbcode_enabled = true
text = "French Republic, Paris, 12th October 2053
78 days since the Abnormality
I applied to help with psychiatric research, a fancy name for suicide at the hands of Abnormals.
Since every senior psychiatrist teleported to the afterlife, the higher-ups gave us a 2-weeks crash course before hurling us to the frontlines.
I am to screen the patients. Separate the Abnormals from the normally insane.
Filter the acceptably unhinged from the anomalously disturbed.
So we may dissect the ones for research, and execute the others for safety."
tab_size = 8
[node name="TextIntro5" type="RichTextLabel" parent="MarginContainer"]
clip_contents = false
custom_minimum_size = Vector2(10, 0)
layout_mode = 2
theme_override_fonts/normal_font = ExtResource("2_i0l2q")
theme_override_fonts/mono_font = ExtResource("2_i0l2q")
theme_override_fonts/italics_font = ExtResource("3_i5n2a")
theme_override_font_sizes/bold_italics_font_size = 30
theme_override_font_sizes/italics_font_size = 30
theme_override_font_sizes/mono_font_size = 30
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 30
bbcode_enabled = true
text = "French Republic, Paris, 12th October 2053
78 days since the Abnormality
I am not qualified.
I do not belong.
And yet I have to try.
For in these times of strife, I finally get to [i]matter[/i]."
tab_size = 8
[node name="SkipContainer" type="CenterContainer" parent="."]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -400.0
offset_top = -200.0
grow_horizontal = 0
grow_vertical = 0
[node name="SkipButton" type="Button" parent="SkipContainer"]
custom_minimum_size = Vector2(200, 100)
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "Skip"
icon_alignment = 1
vertical_icon_alignment = 0
+18 -15
View File
@@ -2,21 +2,6 @@
[ext_resource type="Script" path="res://transition_screen.gd" id="1_hbjtk"]
[sub_resource type="Animation" id="Animation_20bx3"]
resource_name = "fade_to_black"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
[sub_resource type="Animation" id="Animation_n85x3"]
length = 0.001
tracks/0/type = "value"
@@ -32,8 +17,25 @@ tracks/0/keys = {
"values": [Color(0, 0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_20bx3"]
resource_name = "fade_to_black"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
[sub_resource type="Animation" id="Animation_in743"]
resource_name = "fade_to_normal"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@@ -55,6 +57,7 @@ _data = {
}
[node name="transition_screen" type="CanvasLayer"]
layer = 10
script = ExtResource("1_hbjtk")
[node name="ColorRect" type="ColorRect" parent="."]