Added death effect

This commit is contained in:
Rob Kelly 2024-07-31 00:56:29 -06:00
parent 43acf885b5
commit 6a9e0e1886
6 changed files with 247 additions and 72 deletions

View File

@ -1,6 +1,7 @@
extends Weapon
const DAMAGE: float = 40.0
const HEAT_DAMAGE: float = 10.0
const BULLET_COLLISION_MASK: int = 0x00000001
var _charged: bool = false
@ -26,6 +27,7 @@ func fire() -> void:
var target: Node3D = collision["collider"] as Node3D
if target is DamageableBody:
(target as DamageableBody).deal_damage(DAMAGE)
(target as DamageableBody).deal_heat(HEAT_DAMAGE)
var beam: RifleBeam = rifle_beam_scene.instantiate()
var point: Vector3 = collision["position"]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=26 format=3 uid="uid://d75odchj18u1"]
[gd_scene load_steps=33 format=3 uid="uid://d75odchj18u1"]
[ext_resource type="Script" path="res://src/ui/crosshair.gd" id="1_8vuwf"]
[ext_resource type="PackedScene" uid="uid://drbiyuustse8b" path="res://src/maps/arena_map/arena_map.tscn" id="1_bvhtq"]
@ -11,6 +11,7 @@
[ext_resource type="Shader" path="res://src/shaders/speed_lines.gdshader" id="7_sbbkm"]
[ext_resource type="Theme" uid="uid://cq6k0lttfws5w" path="res://src/HUD_theme.tres" id="9_ph71t"]
[ext_resource type="Texture2D" uid="uid://bgujaq21oq2mm" path="res://assets/textures/structure.png" id="10_e82wu"]
[ext_resource type="Shader" path="res://src/shaders/death_fade.gdshader" id="10_jx7mb"]
[ext_resource type="Script" path="res://src/ui/structure_meter.gd" id="10_w8rja"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ag8l2"]
@ -22,6 +23,9 @@ shader = ExtResource("1_rg2hr")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_hre76"]
shader = ExtResource("1_rg2hr")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_c6880"]
shader = ExtResource("1_rg2hr")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_gkq2g"]
noise_type = 0
frequency = 0.1344
@ -39,6 +43,24 @@ shader_parameter/mask_edge = 1.0
shader_parameter/animation_speed = 20.0
shader_parameter/noise = SubResource("NoiseTexture2D_jnd2r")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_hddyf"]
noise_type = 0
frequency = 0.018
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_ia5a8"]
width = 512
height = 256
seamless = true
noise = SubResource("FastNoiseLite_hddyf")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_rpcp4"]
shader = ExtResource("10_jx7mb")
shader_parameter/threshold = 1.0
shader_parameter/speed = 0.5
shader_parameter/color_hi = Color(1, 1, 1, 1)
shader_parameter/color_low = Color(0, 0, 0, 0)
shader_parameter/base_noise = SubResource("NoiseTexture3D_ia5a8")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3nxtv"]
shader = ExtResource("1_rg2hr")
@ -65,6 +87,54 @@ tracks/0/keys = {
"update": 0,
"values": [0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("UI/OverlayEffects/DestructureLabel: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("UI/OverlayEffects/DeathOverlay:material:shader_parameter/threshold")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("UI/OverlayEffects/DeathOverlay: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("UI/MarginContainer:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="Animation" id="Animation_vu38v"]
resource_name = "boost_lines"
@ -81,10 +151,68 @@ tracks/0/keys = {
"values": [0.0, 0.4, 0.0]
}
[sub_resource type="Animation" id="Animation_hc6tj"]
resource_name = "destructure_alert"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("UI/OverlayEffects/DestructureLabel:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [true, false, true, false, true, false, true, false]
}
[sub_resource type="Animation" id="Animation_gqvyn"]
resource_name = "death_overlay"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("UI/OverlayEffects/DeathOverlay:material:shader_parameter/threshold")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.0, 0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("UI/OverlayEffects/DeathOverlay:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("UI/MarginContainer:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.9, 1, 1.4, 1.5, 1.6),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [true, false, true, false, true, false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qjn7a"]
_data = {
"RESET": SubResource("Animation_g25ja"),
"boost_lines": SubResource("Animation_vu38v")
"boost_lines": SubResource("Animation_vu38v"),
"death_overlay": SubResource("Animation_gqvyn"),
"destructure_alert": SubResource("Animation_hc6tj")
}
[node name="Main" type="Control"]
@ -147,12 +275,32 @@ offset_right = 1900.0
offset_bottom = 768.0
script = ExtResource("7_o2wgd")
[node name="DestructureLabel" type="Label" parent="UI/OverlayEffects"]
visible = false
material = SubResource("ShaderMaterial_c6880")
layout_mode = 2
offset_left = 443.0
offset_top = 395.0
offset_right = 1457.0
offset_bottom = 472.0
theme = ExtResource("9_ph71t")
theme_override_font_sizes/font_size = 76
text = "hull destructured
"
[node name="SpeedLinesOverlay" type="ColorRect" parent="UI/OverlayEffects"]
material = SubResource("ShaderMaterial_d76dl")
layout_mode = 0
offset_right = 1900.0
offset_bottom = 768.0
[node name="DeathOverlay" type="ColorRect" parent="UI/OverlayEffects"]
visible = false
material = SubResource("ShaderMaterial_rpcp4")
layout_mode = 0
offset_right = 1900.0
offset_bottom = 768.0
[node name="MarginContainer" type="MarginContainer" parent="UI"]
layout_mode = 0
offset_right = 160.0

View File

@ -31,6 +31,7 @@ var structure: int:
func _ready() -> void:
super._ready()
_heat_meter.value = _heat
_damage_meter.value = _damage
@ -65,9 +66,10 @@ func destructure() -> void:
_controllable = false
shutdown()
if structure > 0:
animation_player.play("death")
_overlay.play_destructure()
animation_player.play("destructure_respawn")
else:
# TODO game over
_overlay.play_death()
print("GAME OVER DUDE")

View File

@ -35,7 +35,7 @@ tracks/0/keys = {
}
[sub_resource type="Animation" id="Animation_tcxmx"]
resource_name = "death"
resource_name = "destructure_respawn"
length = 5.0
tracks/0/type = "method"
tracks/0/imported = false
@ -56,147 +56,147 @@ tracks/0/keys = {
_data = {
"RESET": SubResource("Animation_ycaf1"),
"boost_fov": SubResource("Animation_ss43j"),
"death": SubResource("Animation_tcxmx")
"destructure_respawn": SubResource("Animation_tcxmx")
}
[node name="Player" instance=ExtResource("1_lpmxk")]
script = ExtResource("1_h16ke")
[node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"]
bones/1/position = Vector3(-1.16428e-18, -0.00736261, 6.23137)
bones/3/rotation = Quaternion(0.651538, 0.671366, 0.246168, 0.253314)
bones/4/rotation = Quaternion(0.736024, 0.0536354, 0.0762232, 0.670508)
bones/5/rotation = Quaternion(-0.65202, -0.001012, -0.105773, 0.750787)
bones/6/rotation = Quaternion(-0.432283, 0.0118443, -0.0627081, 0.899477)
bones/7/rotation = Quaternion(-0.849465, 0.0349998, -0.176451, 0.496034)
bones/11/rotation = Quaternion(-0.846089, 0.0413545, -0.171963, 0.502844)
bones/17/rotation = Quaternion(0.751019, 0.0224343, 0.659277, 0.0286585)
bones/23/rotation = Quaternion(0.870274, 0.00333679, 0.143667, 0.471139)
bones/27/rotation = Quaternion(-0.597042, -0.00502321, -0.109081, 0.794744)
bones/33/rotation = Quaternion(-0.58961, -0.00908983, -0.11401, 0.799549)
bones/35/rotation = Quaternion(-0.677493, 0.00412094, -0.109562, 0.727312)
bones/41/rotation = Quaternion(-0.0150592, 0.941806, 0.335601, 0.0121296)
bones/49/rotation = Quaternion(5.8591e-05, 6.57828e-24, -4.94314e-31, 1)
bones/51/rotation = Quaternion(0.595805, -0.000239629, 0.000322575, 0.803129)
bones/55/rotation = Quaternion(0.595805, 0.000238863, -0.000322006, 0.803129)
bones/74/rotation = Quaternion(-0.650689, 0.67046, 0.248452, -0.255655)
bones/75/rotation = Quaternion(0.735637, -0.0536624, -0.0761795, 0.670936)
bones/76/rotation = Quaternion(-0.651694, 0.00101739, 0.105726, 0.751077)
bones/77/rotation = Quaternion(-0.429605, -0.0118529, 0.0623214, 0.900786)
bones/78/rotation = Quaternion(-0.851592, -0.0349176, 0.176814, 0.492249)
bones/82/rotation = Quaternion(-0.848232, -0.0412715, 0.172375, 0.499085)
bones/88/rotation = Quaternion(0.751041, -0.0219512, -0.6593, 0.0279361)
bones/94/rotation = Quaternion(0.870982, -0.00332511, -0.143792, 0.469791)
bones/98/rotation = Quaternion(-0.598005, 0.00502455, 0.109242, 0.793996)
bones/102/rotation = Quaternion(-0.590566, 0.00910891, 0.114193, 0.798817)
bones/106/rotation = Quaternion(-0.677025, -0.00411375, 0.109492, 0.727758)
bones/112/rotation = Quaternion(0.0150595, 0.941678, 0.335959, -0.0121301)
bones/122/position = Vector3(3.16409, -0.186861, 0.386734)
bones/122/rotation = Quaternion(0.993178, -0.00681981, 0.0811594, -0.0834548)
bones/126/position = Vector3(-3.16409, -0.22685, 0.384834)
bones/126/rotation = Quaternion(0.99323, 0.00676828, -0.0811626, -0.0828282)
bones/1/position = Vector3(-1.16428e-18, -0.00625332, 6.22668)
bones/3/rotation = Quaternion(0.651396, 0.671209, 0.246541, 0.25373)
bones/4/rotation = Quaternion(0.737153, 0.0535674, 0.0763608, 0.669257)
bones/5/rotation = Quaternion(-0.652979, -0.00101519, -0.105892, 0.749936)
bones/6/rotation = Quaternion(-0.431764, 0.0118393, -0.0626393, 0.899731)
bones/7/rotation = Quaternion(-0.849564, 0.0349521, -0.176548, 0.495832)
bones/11/rotation = Quaternion(-0.846193, 0.0412531, -0.172066, 0.502641)
bones/17/rotation = Quaternion(0.750926, 0.0220907, 0.659414, 0.0281955)
bones/23/rotation = Quaternion(0.86921, 0.00330647, 0.143504, 0.473149)
bones/27/rotation = Quaternion(-0.598465, -0.00500283, -0.109267, 0.793647)
bones/33/rotation = Quaternion(-0.591048, -0.00908817, -0.114169, 0.798464)
bones/35/rotation = Quaternion(-0.678875, 0.00411232, -0.109741, 0.725995)
bones/41/rotation = Quaternion(-0.0150623, 0.942095, 0.334789, 0.0121375)
bones/49/rotation = Quaternion(-0.000134777, 6.57829e-24, -4.95253e-31, 1)
bones/51/rotation = Quaternion(0.595792, -0.000239576, 0.000322504, 0.803139)
bones/55/rotation = Quaternion(0.595792, 0.00023881, -0.000321935, 0.803139)
bones/74/rotation = Quaternion(-0.650443, 0.670243, 0.249041, -0.256274)
bones/75/rotation = Quaternion(0.737812, -0.0535205, -0.0764348, 0.668526)
bones/76/rotation = Quaternion(-0.653547, 0.00100658, 0.105975, 0.749429)
bones/77/rotation = Quaternion(-0.429047, -0.011862, 0.0622482, 0.901057)
bones/78/rotation = Quaternion(-0.85198, -0.0347576, 0.17704, 0.491507)
bones/82/rotation = Quaternion(-0.848643, -0.0410502, 0.172598, 0.498326)
bones/88/rotation = Quaternion(0.750917, -0.0223197, -0.659403, 0.0285337)
bones/94/rotation = Quaternion(0.868786, -0.00329651, -0.143439, 0.473947)
bones/98/rotation = Quaternion(-0.600942, 0.0049751, 0.109639, 0.791722)
bones/102/rotation = Quaternion(-0.593543, 0.00907395, 0.114561, 0.796556)
bones/106/rotation = Quaternion(-0.679693, -0.00412398, 0.109865, 0.725211)
bones/112/rotation = Quaternion(0.0150685, 0.942205, 0.334478, -0.0121439)
bones/122/position = Vector3(3.16409, -0.189686, 0.386556)
bones/122/rotation = Quaternion(0.993181, -0.00681619, 0.0811596, -0.083413)
bones/126/position = Vector3(-3.16409, -0.228764, 0.397146)
bones/126/rotation = Quaternion(0.993227, 0.00677182, -0.0811633, -0.08287)
[node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"]
transform = Transform3D(0.999993, 0.000270844, 0.00376992, -0.000422731, 0.999186, 0.0403594, -0.0037559, -0.0403607, 0.999178, -0.0134361, -0.0022397, 0.0439675)
transform = Transform3D(0.999991, 0.00014928, 0.0041392, -0.000315055, 0.999198, 0.0400592, -0.00412999, -0.0400601, 0.999189, -0.014317, -0.00171781, 0.0483873)
[node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"]
transform = Transform3D(0.999991, 0.000966832, 0.00413722, -0.00113446, 0.99917, 0.0407169, -0.0040944, -0.0407211, 0.999162, -0.0144382, -0.00117493, 0.0439205)
transform = Transform3D(0.999989, 0.000920057, 0.00458401, -0.00110473, 0.999181, 0.0404314, -0.00454316, -0.0404359, 0.999172, -0.0154581, -0.000423789, 0.048458)
[node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"]
transform = Transform3D(0.999998, -0.000545016, 0.00173768, 0.000546249, 1, -0.000670731, -0.00173731, 0.000671759, 0.999998, -0.0109332, 0.0280135, -0.00482896)
transform = Transform3D(0.999998, -0.000620715, 0.00195181, 0.000623459, 0.999999, -0.00144222, -0.00195101, 0.00144354, 0.999997, -0.0117331, 0.0290513, -0.00143296)
[node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"]
transform = Transform3D(0.999994, -0.00145505, 0.00283367, 0.0013013, 0.998567, 0.0535092, -0.00290737, -0.0535051, 0.998564, -0.0110188, -0.0385674, 0.0108197)
transform = Transform3D(0.999992, -0.00183566, 0.00313922, 0.0016674, 0.998606, 0.0527516, -0.00323178, -0.0527459, 0.998603, -0.0118542, -0.0373563, 0.0139714)
[node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"]
transform = Transform3D(0.999996, -0.000556096, 0.00292753, 0.000533059, 0.999969, 0.00788704, -0.00293178, -0.00788534, 0.999965, -0.0113842, 0.0247514, -0.00279021)
transform = Transform3D(0.999995, -0.000608854, 0.00313539, 0.000582814, 0.999966, 0.00827965, -0.00314041, -0.00827768, 0.999961, -0.0121765, 0.0254272, 0.000352383)
[node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"]
transform = Transform3D(0.999998, -0.00184189, -0.000807282, 0.00189368, 0.997573, 0.069598, 0.000677147, -0.0695991, 0.997575, 0.00757813, -0.421586, -0.0208488)
transform = Transform3D(0.999998, -0.0018937, -0.000796277, 0.00194602, 0.997405, 0.0719653, 0.000657845, -0.0719667, 0.997407, 0.00762916, -0.434556, -0.0181503)
[node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"]
transform = Transform3D(0.999994, 0.00105767, 0.00319152, -0.00117694, 0.999292, 0.0376062, -0.00314942, -0.0376097, 0.999288, -0.0145216, 0.0143656, 0.080409)
transform = Transform3D(0.999994, 0.00106914, 0.00340183, -0.00120121, 0.999237, 0.0390334, -0.00335757, -0.0390372, 0.999232, -0.0153778, 0.0144829, 0.0863199)
[node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"]
transform = Transform3D(0.999994, 0.00105767, 0.00319152, -0.00117694, 0.999292, 0.0376062, -0.00314942, -0.0376097, 0.999288, -0.0145216, 0.0143656, 0.080409)
transform = Transform3D(0.999994, 0.00106914, 0.00340183, -0.00120121, 0.999237, 0.0390334, -0.00335757, -0.0390372, 0.999232, -0.0153778, 0.0144829, 0.0863199)
[node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"]
transform = Transform3D(0.999996, -0.000905588, 0.00260149, 0.000772372, 0.99871, 0.0507722, -0.00264408, -0.0507699, 0.998707, -0.0108514, -0.0319748, 0.0110567)
transform = Transform3D(0.999996, -0.000997476, 0.00280916, 0.000848778, 0.998625, 0.0524211, -0.00285763, -0.0524184, 0.998621, -0.0116279, -0.0329653, 0.014776)
[node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"]
transform = Transform3D(0.999993, -0.000228599, 0.00379287, 0.000529192, 0.99684, -0.0794323, -0.0037627, 0.0794338, 0.996833, -0.0139487, 0.254966, -0.0777888)
transform = Transform3D(0.999992, -0.00021378, 0.00399574, 0.000539087, 0.996664, -0.0816091, -0.00396505, 0.0816106, 0.996656, -0.0147936, 0.26262, -0.0767398)
[node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"]
transform = Transform3D(1, -0.000171863, -0.00103944, 0.000243925, 0.997569, 0.0696927, 0.00102494, -0.0696929, 0.997568, 0.00668406, -0.423236, -0.185315)
transform = Transform3D(1, -0.000213258, -0.00104333, 0.000288401, 0.997361, 0.0726059, 0.00102499, -0.0726059, 0.99736, 0.00671315, -0.439387, -0.187011)
[node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"]
transform = Transform3D(1, -0.000425305, -0.000756159, 0.000450227, 0.999448, 0.0332237, 0.000741617, -0.033224, 0.999448, 0.00523162, -0.222507, -0.211825)
transform = Transform3D(1, -0.00046258, -0.000726788, 0.000487272, 0.999408, 0.0344182, 0.000710333, -0.0344184, 0.999408, 0.00507379, -0.229181, -0.215151)
[node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"]
transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0073626, -0.240833)
transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0062533, -0.245515)
[node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"]
transform = Transform3D(1, 8.32707e-08, 5.03686e-07, -8.31202e-08, 1, -0.00032261, -5.03873e-07, 0.00032264, 1, -5.84126e-06, -0.00431776, -0.24038)
transform = Transform3D(1, 6.9661e-08, 3.26919e-07, -6.96939e-08, 1, 9.79604e-05, -3.27074e-07, -9.79305e-05, 1, -3.93391e-06, -0.00608826, -0.245136)
[node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"]
transform = Transform3D(1, -8.22622e-08, -5.02348e-07, 8.21161e-08, 1, -0.00032261, 5.02417e-07, 0.00032264, 1, 5.84126e-06, -0.004318, -0.240381)
transform = Transform3D(1, -6.86197e-08, -3.25523e-07, 6.86223e-08, 1, 9.79902e-05, 3.25503e-07, -9.79305e-05, 1, 3.8147e-06, -0.00608897, -0.245137)
[node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"]
transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000118077, 3.41061e-13, 0.000118077, 1, -9.09154e-13, -0.00659955, -0.240835)
transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000268638, 3.41061e-13, -0.000268638, 1, -9.09154e-13, -0.00799316, -0.245517)
[node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"]
transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, -0.000118077, 3.41061e-13, 0.000118077, 1, -9.09154e-13, -0.00659955, -0.240835)
transform = Transform3D(1, -1.7053e-13, -3.41061e-13, 2.84217e-13, 1, 0.000268638, 3.41061e-13, -0.000268638, 1, -9.09154e-13, -0.00799316, -0.245517)
[node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"]
transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.11299e-10, 1, -0.000117465, 1.01563e-08, 0.000117465, 1, -2.38419e-07, -0.00660419, -0.240833)
transform = Transform3D(1, 1.08713e-10, -1.01801e-08, -1.07377e-10, 1, 0.000269271, 1.01596e-08, -0.000269271, 1, -2.38419e-07, -0.00799751, -0.245515)
[node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"]
transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.11299e-10, 1, -0.000117465, -1.01563e-08, 0.000117465, 1, 2.38419e-07, -0.00660419, -0.240833)
transform = Transform3D(1, -1.08713e-10, 1.01801e-08, 1.07377e-10, 1, 0.000269271, -1.01596e-08, -0.000269271, 1, 2.38419e-07, -0.00799751, -0.245515)
[node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"]
transform = Transform3D(1, -2.63915e-23, 7.71845e-28, 2.63915e-23, 1, -0.000117182, 2.32076e-27, 0.000117182, 1, -1.16428e-18, -0.00660419, -0.240833)
transform = Transform3D(1, -2.63915e-23, -1.77222e-27, 2.63915e-23, 1, 0.000269554, -5.34171e-27, -0.000269554, 1, -1.16428e-18, -0.00799793, -0.245515)
[node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"]
transform = Transform3D(1, -2.63915e-23, 7.71845e-28, 2.63915e-23, 1, -0.000117182, 2.32076e-27, 0.000117182, 1, -1.16428e-18, -0.00660419, -0.240833)
transform = Transform3D(1, -2.63915e-23, -1.77222e-27, 2.63915e-23, 1, 0.000269554, -5.34171e-27, -0.000269554, 1, -1.16428e-18, -0.00799793, -0.245515)
[node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"]
transform = Transform3D(0.999994, -0.000320703, -0.00345896, 0.000494376, 0.998734, 0.050325, 0.00343836, -0.0503263, 0.998727, 0.0133188, -0.0524864, 0.056792)
transform = Transform3D(0.999992, -0.00027217, -0.00405152, 0.000478804, 0.998694, 0.0511049, 0.00403222, -0.0511064, 0.998686, 0.014437, -0.0498974, 0.0695601)
[node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"]
transform = Transform3D(0.999992, -0.00102298, -0.00387646, 0.00121805, 0.998716, 0.0506645, 0.00381967, -0.0506689, 0.998708, 0.0143678, -0.0514237, 0.0570697)
transform = Transform3D(0.999989, -0.00108321, -0.00453538, 0.00131534, 0.998673, 0.0514989, 0.00447351, -0.0515043, 0.998663, 0.0156498, -0.0485841, 0.0698172)
[node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"]
transform = Transform3D(0.999998, 0.000553004, -0.0017409, -0.000551961, 1, 0.000596449, 0.00174122, -0.00059551, 0.999998, 0.0110166, -0.0156508, 4.72069e-05)
transform = Transform3D(0.999998, 0.000604123, -0.00197114, -0.000604903, 1, -0.000349, 0.00197086, 0.000350282, 0.999998, 0.0118337, -0.0117831, 0.0097774)
[node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"]
transform = Transform3D(0.999995, 0.00143272, -0.00282777, -0.00126272, 0.998255, 0.0590396, 0.00290702, -0.0590359, 0.998251, 0.0110953, -0.0820196, 0.0143398)
transform = Transform3D(0.999994, 0.00179173, -0.00317816, -0.00159477, 0.998153, 0.0607463, 0.00328055, -0.060741, 0.998148, 0.0119696, -0.0813721, 0.0247641)
[node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"]
transform = Transform3D(0.999996, 0.000526905, -0.00292153, -0.000482544, 0.999885, 0.0151652, 0.00292914, -0.0151637, 0.999881, 0.011457, -0.0210674, 0.000866413)
transform = Transform3D(0.999995, 0.000570633, -0.00316951, -0.000521623, 0.99988, 0.0154697, 0.00317786, -0.0154679, 0.999875, 0.0122778, -0.0176382, 0.0104029)
[node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"]
transform = Transform3D(0.999998, 0.00178637, 0.000763737, -0.00183843, 0.997206, 0.0746853, -0.000628234, -0.0746866, 0.997207, -0.00724745, -0.456081, -0.0150957)
transform = Transform3D(0.999998, 0.00187047, 0.000814401, -0.00192931, 0.99684, 0.0794136, -0.0006634, -0.0794149, 0.996841, -0.00778913, -0.481897, -0.00567913)
[node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"]
transform = Transform3D(0.999995, -0.00109495, -0.00310612, 0.00124346, 0.998837, 0.0482108, 0.00304965, -0.0482145, 0.998832, 0.0144379, -0.03793, 0.0884684)
transform = Transform3D(0.999994, -0.00116175, -0.00336951, 0.00133206, 0.998698, 0.0509981, 0.00330577, -0.0510023, 0.998693, 0.0154228, -0.0365751, 0.104136)
[node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"]
transform = Transform3D(0.999993, -0.00194001, -0.00326074, 0.00209601, 0.998819, 0.0485438, 0.00316269, -0.0485504, 0.998816, 0.015898, -0.0378579, 0.087142)
transform = Transform3D(0.999992, -0.00200807, -0.00356642, 0.00218861, 0.998678, 0.0513718, 0.00345845, -0.0513791, 0.998674, 0.0169716, -0.0366606, 0.102826)
[node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"]
transform = Transform3D(0.999996, 0.000874102, -0.00260099, -0.000722803, 0.998338, 0.0576186, 0.00264698, -0.0576165, 0.998335, 0.0109327, -0.077161, 0.0149565)
transform = Transform3D(0.999996, 0.000964411, -0.00283737, -0.000791483, 0.998177, 0.0603464, 0.0028903, -0.0603439, 0.998173, 0.0117209, -0.0768697, 0.0255554)
[node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"]
transform = Transform3D(0.999993, 0.000201866, -0.00377585, -0.000470586, 0.997455, -0.0713006, 0.00375181, 0.0713018, 0.997448, 0.0139906, 0.206266, -0.0751367)
transform = Transform3D(0.999992, 0.000167646, -0.00404255, -0.000474326, 0.997111, -0.0759681, 0.00401805, 0.0759694, 0.997102, 0.0149364, 0.223073, -0.0695429)
[node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"]
transform = Transform3D(1, 0.00014629, 0.000980546, -0.000220321, 0.997114, 0.0759154, -0.000966636, -0.0759155, 0.997114, -0.00630021, -0.463669, -0.176894)
transform = Transform3D(1, 0.00018042, 0.00107741, -0.000267006, 0.996724, 0.0808734, -0.00105935, -0.0808736, 0.996724, -0.00690508, -0.491641, -0.176653)
[node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"]
transform = Transform3D(1, 0.000393377, 0.000718348, -0.000421965, 0.999191, 0.040217, -0.000701974, -0.0402173, 0.999191, -0.00496173, -0.26729, -0.2042)
transform = Transform3D(1, 0.000426796, 0.000761892, -0.000458497, 0.999116, 0.0420454, -0.000743346, -0.0420458, 0.999116, -0.00527024, -0.278019, -0.206999)
[node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"]
transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0073626, -0.240833)
transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0062533, -0.245515)
[node name="CameraRoot" type="Node3D" parent="." index="6"]
transform = Transform3D(1, 0, 0, 0, 0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 2, 0)

View File

@ -0,0 +1,14 @@
shader_type canvas_item;
uniform float threshold: hint_range(0.0, 1.0) = 0.3;
uniform float speed = 0.5;
uniform vec4 color_hi : source_color = vec4(1.0, 1.0, 1.0, 1.0);
uniform vec4 color_low : source_color = vec4(0.0, 0.0, 0.0, 1.0);
uniform sampler3D base_noise: repeat_enable;
void fragment() {
vec4 noise_color = texture(base_noise, vec3(UV.x, UV.y, TIME * speed)).rgba;
COLOR.rgba = noise_color.r > threshold ? color_hi : color_low;
}

View File

@ -7,3 +7,12 @@ extends Control
func play_boost() -> void:
animation_player.play("boost_lines")
animation_player.seek(0)
func play_destructure() -> void:
animation_player.play("destructure_alert")
animation_player.seek(0)
func play_death() -> void:
animation_player.play("death_overlay")