This commit is contained in:
MarcEricMartel 2023-06-11 17:00:56 -04:00
parent 302256fcbc
commit 8fd4342358
3 changed files with 144 additions and 3 deletions

117
endings/gotnuked.tscn Normal file
View File

@ -0,0 +1,117 @@
[gd_scene load_steps=5 format=3 uid="uid://c6xxtr3il1hik"]
[ext_resource type="Script" path="res://endings/mad.cs" id="1_0rnjn"]
[ext_resource type="Texture2D" uid="uid://b44vs2lwgnh37" path="res://images/mushroom_cloud001.webp" id="2_kut5n"]
[ext_resource type="AudioStream" uid="uid://crx8mwvfcdpmg" path="res://audio/gameover.wav" id="3_v54xl"]
[sub_resource type="LabelSettings" id="LabelSettings_mpvba"]
font_size = 30
font_color = Color(0.580392, 0, 0.00784314, 1)
outline_size = 5
[node name="Node2D" type="Control" node_paths=PackedStringArray("_lb1", "_lb2", "_lb3", "_lb4", "_lb0", "_tmr")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_0rnjn")
_lb1 = NodePath("Label")
_lb2 = NodePath("Label2")
_lb3 = NodePath("Label3")
_lb4 = NodePath("Label4")
_lb0 = NodePath("Why")
_tmr = NodePath("Timer")
[node name="TextureRect" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 0
texture = ExtResource("2_kut5n")
expand_mode = 1
[node name="Why" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "You were not enough of a threat to your enemy."
label_settings = SubResource("LabelSettings_mpvba")
[node name="Label" type="Label" parent="."]
visible = false
layout_mode = 1
offset_left = 40.0
offset_top = 31.0
offset_right = 342.0
offset_bottom = 57.0
text = "It's the end of the world as we know it, "
horizontal_alignment = 1
[node name="Label2" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -342.0
offset_top = 28.0
offset_right = -40.0
offset_bottom = 54.0
grow_horizontal = 0
text = "it's the end of the world as we know it, "
horizontal_alignment = 1
[node name="Label3" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 39.0
offset_top = -141.0
offset_right = 336.0
offset_bottom = -115.0
grow_vertical = 0
text = "it's the end of the world as we know it,"
horizontal_alignment = 1
[node name="Label4" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -258.0
offset_top = -150.0
offset_right = -144.0
offset_bottom = -124.0
grow_horizontal = 0
grow_vertical = 0
text = "and I feel fine. "
horizontal_alignment = 1
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
autostart = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_v54xl")
pitch_scale = 0.48
autoplay = true

View File

@ -7,7 +7,7 @@ public partial class mad : Control
private List<Label> _lbls; private List<Label> _lbls;
[Export] [Export]
private Label _lb1, _lb2, _lb3, _lb4; private Label _lb1, _lb2, _lb3, _lb4, _lb0;
[Export] [Export]
private Timer _tmr; private Timer _tmr;
@ -16,6 +16,7 @@ public partial class mad : Control
public override void _Ready() public override void _Ready()
{ {
_lbls = new(); _lbls = new();
_lbls.Add(_lb0);
_lbls.Add(_lb1); _lbls.Add(_lb1);
_lbls.Add(_lb2); _lbls.Add(_lb2);
_lbls.Add(_lb3); _lbls.Add(_lb3);

View File

@ -1,10 +1,15 @@
[gd_scene load_steps=4 format=3 uid="uid://bad1nbou8xmb3"] [gd_scene load_steps=5 format=3 uid="uid://bad1nbou8xmb3"]
[ext_resource type="Texture2D" uid="uid://b44vs2lwgnh37" path="res://images/mushroom_cloud001.webp" id="1_gaysb"] [ext_resource type="Texture2D" uid="uid://b44vs2lwgnh37" path="res://images/mushroom_cloud001.webp" id="1_gaysb"]
[ext_resource type="Script" path="res://endings/mad.cs" id="1_tmwdq"] [ext_resource type="Script" path="res://endings/mad.cs" id="1_tmwdq"]
[ext_resource type="AudioStream" uid="uid://crx8mwvfcdpmg" path="res://audio/gameover.wav" id="3_umlek"] [ext_resource type="AudioStream" uid="uid://crx8mwvfcdpmg" path="res://audio/gameover.wav" id="3_umlek"]
[node name="Node2D" type="Control" node_paths=PackedStringArray("_lb1", "_lb2", "_lb3", "_lb4", "_tmr")] [sub_resource type="LabelSettings" id="LabelSettings_mpvba"]
font_size = 30
font_color = Color(0.580392, 0, 0.00784314, 1)
outline_size = 5
[node name="Node2D" type="Control" node_paths=PackedStringArray("_lb1", "_lb2", "_lb3", "_lb4", "_lb0", "_tmr")]
layout_mode = 3 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
@ -16,6 +21,7 @@ _lb1 = NodePath("Label")
_lb2 = NodePath("Label2") _lb2 = NodePath("Label2")
_lb3 = NodePath("Label3") _lb3 = NodePath("Label3")
_lb4 = NodePath("Label4") _lb4 = NodePath("Label4")
_lb0 = NodePath("Why")
_tmr = NodePath("Timer") _tmr = NodePath("Timer")
[node name="TextureRect" type="TextureRect" parent="."] [node name="TextureRect" type="TextureRect" parent="."]
@ -29,6 +35,23 @@ size_flags_vertical = 0
texture = ExtResource("1_gaysb") texture = ExtResource("1_gaysb")
expand_mode = 1 expand_mode = 1
[node name="Why" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "You sent yourself and your opponent to oblivion."
label_settings = SubResource("LabelSettings_mpvba")
[node name="Label" type="Label" parent="."] [node name="Label" type="Label" parent="."]
visible = false visible = false
layout_mode = 1 layout_mode = 1