]> Untitled Git - frog-ninja.git/blob - player/sword.tscn
Added shooting, more proper sword stuff
[frog-ninja.git] / player / sword.tscn
1 [gd_scene load_steps=4 format=3 uid="uid://b3idqb7fb550a"]
2
3 [ext_resource type="Script" uid="uid://bohyp1pxi57tm" path="res://player/sword.gd" id="1_hv1tj"]
4 [ext_resource type="PackedScene" uid="uid://c465xpmcc4rh1" path="res://skin/prototype_sword_skin.tscn" id="1_rk2yr"]
5
6 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rk2yr"]
7 radius = 0.114308
8 height = 1.12802
9
10 [node name="Sword" type="Node3D"]
11 script = ExtResource("1_hv1tj")
12
13 [node name="skin" parent="." instance=ExtResource("1_rk2yr")]
14
15 [node name="hurtbox" type="Area3D" parent="." groups=["hurtbox"]]
16 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.720478)
17 collision_layer = 2
18 collision_mask = 5
19
20 [node name="CollisionShape3D" type="CollisionShape3D" parent="hurtbox"]
21 transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
22 shape = SubResource("CapsuleShape3D_rk2yr")
23 debug_color = Color(1, 0, 0.25, 1)
24
25 [connection signal="body_entered" from="hurtbox" to="." method="_on_hurtbox_body_entered"]