added sword cursor

This commit is contained in:
derek
2025-06-26 11:19:44 -05:00
parent abe877c5da
commit 78d8ab4b10
15 changed files with 152 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ bg_color = Color(0.458824, 0, 0.145098, 1)
bg_color = Color(0.457868, 0.677542, 0.145981, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_8uhk6"]
size = Vector3(30, 1, 30)
size = Vector3(60, 1, 60)
[node name="CameraFollow" type="Node3D"]
script = ExtResource("1_ocbkm")

View File

@@ -51,8 +51,8 @@ margin = 0.0
radius = 0.0860376
[node name="GOLDCOIN" type="RigidBody3D"]
collision_layer = 32
collision_mask = 33
collision_layer = 16
collision_mask = 17
mass = 0.1
continuous_cd = true
contact_monitor = true

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=3 uid="uid://bacgd5lmvaxea"]
[gd_scene load_steps=17 format=3 uid="uid://bacgd5lmvaxea"]
[ext_resource type="Script" uid="uid://bcgt64gerg8pv" path="res://Scripts/player.gd" id="1_5wxv7"]
[ext_resource type="Material" uid="uid://b4rpp31c0dx2m" path="res://Assets/Materials/BasicMat.tres" id="1_y6xdh"]
@@ -7,10 +7,15 @@
[ext_resource type="Script" uid="uid://wnisqyoyai2h" path="res://Scripts/player_on_floor.gd" id="4_hck1p"]
[ext_resource type="Script" uid="uid://dhnl0penaqfkx" path="res://Scripts/player_dodge_roll.gd" id="5_hck1p"]
[ext_resource type="PackedScene" uid="uid://b12w4ut17srje" path="res://Assets/Models/Character1.blend" id="7_juxdh"]
[ext_resource type="PackedScene" uid="uid://b4c4cu400yrgt" path="res://Assets/Models/SwordCursor.blend" id="8_4qbli"]
[sub_resource type="BoxMesh" id="BoxMesh_5wxv7"]
size = Vector3(0.945, 0.13, 0.135)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_08u7w"]
transparency = 1
albedo_color = Color(1, 1, 1, 0)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y5hcb"]
radius = 0.362
@@ -119,6 +124,10 @@ transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.652269, 0.475497, -0.696594)
mesh = SubResource("BoxMesh_5wxv7")
skeleton = NodePath("../..")
surface_material_override/0 = SubResource("StandardMaterial3D_08u7w")
[node name="SwordCursor" parent="Body/ShittySword" instance=ExtResource("8_4qbli")]
transform = Transform3D(0.644047, 0.760603, 0.0817732, -3.35396e-06, -0.106892, 0.994271, 0.764986, -0.640357, -0.068841, -0.0904393, 4.17233e-07, 0.438631)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
@@ -130,8 +139,8 @@ libraries = {
}
[node name="Area3D" type="Area3D" parent="."]
collision_layer = 32
collision_mask = 32
collision_layer = 16
collision_mask = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("SphereShape3D_juxdh")