This commit is contained in:
2023-07-17 13:10:26 -07:00
parent 036651f2d3
commit 86b8ddc3f0
10 changed files with 131 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3 uid="uid://ds2y8l8onrs4f"]
[gd_scene load_steps=4 format=3 uid="uid://ds2y8l8onrs4f"]
[ext_resource type="Script" path="res://Scripts/Blizzard.cs" id="1_rqtsv"]
@@ -9,24 +9,19 @@ albedo_color = Color(0.137255, 0.447059, 0.796078, 1)
radial_segments = 4
rings = 1
[sub_resource type="SphereShape3D" id="SphereShape3D_xe0sc"]
[node name="Blizzard" type="Node3D"]
script = ExtResource("1_rqtsv")
Cooldown = 1.0
_projectileSpeed = 10.0
[node name="RigidBody3D" type="RigidBody3D" parent="."]
collision_layer = 0
collision_mask = 16
mass = 0.01
gravity_scale = 0.0
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11373, 0)
material_override = SubResource("StandardMaterial3D_pd0mo")
mesh = SubResource("SphereMesh_g0pbs")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11958, 0)
shape = SubResource("SphereShape3D_xe0sc")
[node name="TimeToLive" type="Timer" parent="."]
wait_time = 2.5
one_shot = true
autostart = true
[connection signal="timeout" from="TimeToLive" to="." method="OnTimeToLiveTimeout"]