Rendering how I want for now

This commit is contained in:
2025-11-28 15:11:58 -06:00
parent d532a9ab21
commit 5573ad815f
15 changed files with 199 additions and 376 deletions

View File

@@ -1,96 +1,48 @@
[gd_scene load_steps=12 format=3 uid="uid://kabs7mopalmo"]
[gd_scene load_steps=8 format=3 uid="uid://kabs7mopalmo"]
[ext_resource type="Script" uid="uid://crw7ls7t8cwct" path="res://entity/npc/NPC.gd" id="1_00k55"]
[ext_resource type="Script" uid="uid://b00rxpveu3v4m" path="res://InteractableArea.gd" id="2_x8luf"]
[ext_resource type="Script" uid="uid://tlfthv88ki0y" path="res://entity/npc/NPCMovement.gd" id="3_1seh5"]
[ext_resource type="Texture2D" uid="uid://xx3qp5xh7tgu" path="res://entity/player/Player.png" id="4_x8luf"]
[sub_resource type="BoxShape3D" id="BoxShape3D_1seh5"]
size = Vector3(16, 16, 16)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_jphom"]
[sub_resource type="AtlasTexture" id="AtlasTexture_rl6fg"]
atlas = ExtResource("4_x8luf")
region = Rect2(16, 0, 16, 16)
[sub_resource type="BoxShape3D" id="BoxShape3D_jphom"]
size = Vector3(1, 2, 1)
[sub_resource type="AtlasTexture" id="AtlasTexture_q57vx"]
atlas = ExtResource("4_x8luf")
region = Rect2(48, 0, 16, 16)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jphom"]
shading_mode = 0
[sub_resource type="AtlasTexture" id="AtlasTexture_ak4un"]
atlas = ExtResource("4_x8luf")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1ms0h"]
atlas = ExtResource("4_x8luf")
region = Rect2(32, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_1seh5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rl6fg")
}],
"loop": true,
"name": &"walk_east",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_q57vx")
}],
"loop": true,
"name": &"walk_north",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ak4un")
}],
"loop": true,
"name": &"walk_south",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_1ms0h")
}],
"loop": true,
"name": &"walk_west",
"speed": 5.0
}]
[sub_resource type="SphereShape3D" id="SphereShape3D_x8luf"]
radius = 8.5
[sub_resource type="CapsuleMesh" id="CapsuleMesh_jphom"]
material = SubResource("StandardMaterial3D_jphom")
[node name="NPC" type="CharacterBody3D" node_paths=PackedStringArray("_movement")]
script = ExtResource("1_00k55")
facingDirection = null
walkSpeed = null
runSpeed = null
_movement = NodePath("Scripts/NPCMovement")
[node name="Scripts" type="Node" parent="."]
[node name="NPCMovement" type="Node" parent="Scripts" node_paths=PackedStringArray("body", "sprite")]
[node name="NPCMovement" type="Node" parent="Scripts" node_paths=PackedStringArray("body")]
script = ExtResource("3_1seh5")
body = NodePath("../..")
sprite = NodePath("../../AnimatedSprite3D")
[node name="InteractableArea" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_jphom")
[node name="Rotate" type="Node3D" parent="."]
[node name="InteractableArea" type="Area3D" parent="Rotate"]
script = ExtResource("2_x8luf")
metadata/_custom_type_script = "uid://b00rxpveu3v4m"
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractableArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8, 0)
shape = SubResource("BoxShape3D_1seh5")
[node name="InteractableShape" type="CollisionShape3D" parent="Rotate/InteractableArea"]
transform = Transform3D(0.999999, -0.000856732, 0.0007724, 0.000857588, 0.999999, -0.00114162, -0.000771449, 0.00114226, 0.999999, 0, 0, 0)
shape = SubResource("BoxShape3D_jphom")
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
pixel_size = 1.0
axis = 1
double_sided = false
texture_filter = 0
sprite_frames = SubResource("SpriteFrames_1seh5")
animation = &"walk_south"
[node name="CapsuleMesh" type="MeshInstance3D" parent="Rotate"]
mesh = SubResource("CapsuleMesh_jphom")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.5, 0)
shape = SubResource("SphereShape3D_x8luf")
[connection signal="interactEvent" from="InteractableArea" to="." method="onInteract"]
[connection signal="interactEvent" from="Rotate/InteractableArea" to="." method="onInteract"]