door (20)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://cru3yl7laeiem"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://cru3yl7laeiem"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://mr6hi8icwyle" path="res://model/Trick or treatBG.png" id="1_4oira"]
|
||||
[ext_resource type="Script" path="res://script/Principal.cs" id="1_5hpqm"]
|
||||
@@ -12,7 +12,160 @@ bg_color = Color(0.0728426, 0.0728426, 0.0728426, 0.890196)
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kg8au"]
|
||||
bg_color = Color(0.0728426, 0.0728426, 0.0728426, 0.890196)
|
||||
|
||||
[node name="Principal" type="Control" node_paths=PackedStringArray("sub", "credit")]
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_luosh"]
|
||||
bg_color = Color(0, 0, 0, 0.745098)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fe1ic"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("sub:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("credit:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("explication/Label:modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("explication:visible")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("explication/Label2:modulate")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_5wj8t"]
|
||||
resource_name = "play"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("sub:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("credit:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("explication/Label:modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("explication:visible")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_arta6"]
|
||||
resource_name = "play2"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("explication/Label:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("explication/Label2:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l2600"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_fe1ic"),
|
||||
"play": SubResource("Animation_5wj8t"),
|
||||
"play2": SubResource("Animation_arta6")
|
||||
}
|
||||
|
||||
[node name="Principal" type="Control" node_paths=PackedStringArray("sub", "credit", "anim")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -22,6 +175,7 @@ grow_vertical = 2
|
||||
script = ExtResource("1_5hpqm")
|
||||
sub = NodePath("sub")
|
||||
credit = NodePath("credit")
|
||||
anim = NodePath("AnimationPlayer")
|
||||
|
||||
[node name="TrickOrTreatBg" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_4oira")
|
||||
@@ -58,6 +212,7 @@ text = "Play
|
||||
"
|
||||
|
||||
[node name="Credits" type="Button" parent="sub"]
|
||||
process_mode = 3
|
||||
layout_mode = 0
|
||||
offset_left = 247.0
|
||||
offset_top = 149.0
|
||||
@@ -128,6 +283,66 @@ theme = ExtResource("2_ab0tu")
|
||||
text = "Exit
|
||||
"
|
||||
|
||||
[node name="explication" type="Panel" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_luosh")
|
||||
|
||||
[node name="Label" type="Label" parent="explication"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2_ab0tu")
|
||||
theme_override_font_sizes/font_size = 19
|
||||
text = "You play as Patrick, a fat diabetic kiddo without a friend.
|
||||
You might think he’s disguised for Halloween, but in fact he feels bad in his own skin, he cosplays as his favorite character to feel cooler.
|
||||
|
||||
On Halloween night he decided to go hangout outside alone while his parents weren’t at home, but he forgot something important, his insulin injector.
|
||||
"
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="Label2" type="Label" parent="explication"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2_ab0tu")
|
||||
theme_override_font_sizes/font_size = 19
|
||||
text = "He now has to go from 6pm to 10pm without it, but he just can’t wait here, lucky him, it’s Halloween, so there’s kiddos everywhere going to trick or treat.
|
||||
Though he’s not a fan of adults, he must face his fears on this tremendous night and go knock on their doors to have some candy !
|
||||
But beware, too much candy is no good too, you must balance between getting candies and going around the place.
|
||||
Now, there’s something weird about this place..
|
||||
Have fun !
|
||||
"
|
||||
vertical_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="Label3" type="Label" parent="explication"]
|
||||
layout_mode = 0
|
||||
offset_left = 334.0
|
||||
offset_top = 270.0
|
||||
offset_right = 380.0
|
||||
offset_bottom = 293.0
|
||||
theme = ExtResource("2_ab0tu")
|
||||
text = "Enter..."
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_l2600")
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="Enter" to="." method="EnterPressed"]
|
||||
[connection signal="pressed" from="sub/Play" to="." method="PlayPressed"]
|
||||
[connection signal="pressed" from="sub/Credits" to="." method="creditEnter"]
|
||||
|
||||
Reference in New Issue
Block a user