BOOM
This commit is contained in:
parent
bb912bf3ce
commit
302256fcbc
@ -1,10 +1,10 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://4tym1auav4yv"]
|
||||
|
||||
[ext_resource type="Script" path="res://menu/start_game_menu.cs" id="1_0k2xm"]
|
||||
[ext_resource type="Texture2D" uid="uid://bd7j1ug5gs26w" path="res://images/mushroom_cloud001.webp" id="2_aky60"]
|
||||
[ext_resource type="AudioStream" uid="uid://co52ygvp3wcra" path="res://music/I Feel Grunge (Slow).wav" id="2_yw57x"]
|
||||
[ext_resource type="AudioStream" uid="uid://ds7ec1n3pytnr" path="res://audio/btn.wav" id="4_fx2mk"]
|
||||
[ext_resource type="AudioStream" uid="uid://cg78xtngxrjlg" path="res://audio/dot.wav" id="5_y8gc7"]
|
||||
[ext_resource type="Texture2D" uid="uid://b44vs2lwgnh37" path="res://images/mushroom_cloud001.webp" id="2_aky60"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckg5eypyrhidg" path="res://music/I Feel Grunge (Slow).wav" id="2_yw57x"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8dcqkmytnyay" path="res://audio/btn.wav" id="4_fx2mk"]
|
||||
[ext_resource type="AudioStream" uid="uid://dja6tipmq1m8l" path="res://audio/dot.wav" id="5_y8gc7"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_n38oc"]
|
||||
font_size = 290
|
||||
|
@ -226,7 +226,6 @@ public partial class player : Camera3D
|
||||
_btnEnd.Disabled = false;
|
||||
_btnEnd.Pressed += () => { _sndBtn.Play(); Nuke(); };
|
||||
}
|
||||
|
||||
if (GameTime <= 0)
|
||||
gameover = true;
|
||||
|
||||
@ -316,5 +315,11 @@ public partial class player : Camera3D
|
||||
}
|
||||
}
|
||||
|
||||
public void Nuke() { }
|
||||
public void Nuke() {
|
||||
|
||||
var scene = GD.Load<PackedScene>("res://endings/mad.tscn");
|
||||
var instance = scene.Instantiate();
|
||||
GetNode<Node>("/root/").AddChild(instance);
|
||||
this.GetParent().QueueFree();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user