That'sgreatitstartswithanearthquake
This commit is contained in:
parent
72514d01c4
commit
06e17f616d
42
endings/mad.cs
Normal file
42
endings/mad.cs
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
using Godot;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public partial class mad : Control
|
||||||
|
{
|
||||||
|
private List<Label> _lbls;
|
||||||
|
|
||||||
|
[Export]
|
||||||
|
private Label _lb1, _lb2, _lb3, _lb4;
|
||||||
|
|
||||||
|
[Export]
|
||||||
|
private Timer _tmr;
|
||||||
|
|
||||||
|
// Called when the node enters the scene tree for the first time.
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
_lbls = new();
|
||||||
|
_lbls.Add(_lb1);
|
||||||
|
_lbls.Add(_lb2);
|
||||||
|
_lbls.Add(_lb3);
|
||||||
|
_lbls.Add(_lb4);
|
||||||
|
_tmr.Timeout += () => Tick();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Tick() {
|
||||||
|
if (_lbls.Count > 0) {
|
||||||
|
_lbls[0].Set("visible", true);
|
||||||
|
_lbls.Remove(_lbls[0]);
|
||||||
|
} else {
|
||||||
|
var scene = GD.Load<PackedScene>("res://menu/start_game_menu.tscn");
|
||||||
|
var instance = scene.Instantiate();
|
||||||
|
GetNode<Node>("/root/").AddChild(instance);
|
||||||
|
this.QueueFree();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
public override void _Process(double delta)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
94
endings/mad.tscn
Normal file
94
endings/mad.tscn
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
[gd_scene load_steps=4 format=3 uid="uid://bad1nbou8xmb3"]
|
||||||
|
|
||||||
|
[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="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")]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
script = ExtResource("1_tmwdq")
|
||||||
|
_lb1 = NodePath("Label")
|
||||||
|
_lb2 = NodePath("Label2")
|
||||||
|
_lb3 = NodePath("Label3")
|
||||||
|
_lb4 = NodePath("Label4")
|
||||||
|
_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("1_gaysb")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
|
[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_umlek")
|
||||||
|
pitch_scale = 0.48
|
||||||
|
autoplay = true
|
Loading…
Reference in New Issue
Block a user