Separate Stele concept from Npc

This commit is contained in:
2026-06-04 23:38:59 -07:00
parent d8b99e07de
commit bb46f0dcd9
11 changed files with 420 additions and 52 deletions
@@ -1,7 +1,7 @@
[gd_scene load_steps=17 format=4 uid="uid://0aqllfpimgq"]
[gd_scene load_steps=20 format=4 uid="uid://0aqllfpimgq"]
[ext_resource type="Texture2D" uid="uid://dcodsa21o3syb" path="res://src/map/assets/Steles/Steles_C024_C.jpg" id="1_eu5gg"]
[ext_resource type="Script" uid="uid://dcqssoikr3pl7" path="res://src/npc/Npc.cs" id="1_xe50d"]
[ext_resource type="Script" uid="uid://bee0bhxtd4r8s" path="res://src/npc/Stele.cs" id="1_q5wc4"]
[ext_resource type="Texture2D" uid="uid://dj2upntyeqryx" path="res://src/map/assets/Steles/Steles_COPPWIR.jpg" id="2_xe50d"]
[ext_resource type="Texture2D" uid="uid://bwelhd4sx7mkw" path="res://src/map/assets/Steles/Steles_COPPEROX.jpg" id="3_q5wc4"]
[ext_resource type="Texture2D" uid="uid://c8nvb5jn8f6k1" path="res://src/map/assets/Steles/Steles_Untitled-1.png" id="4_fpef4"]
@@ -149,8 +149,44 @@ height = 3.0
height = 2.24425
radius = 1.941
[sub_resource type="Animation" id="Animation_hrxn4"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("FLOWER:transparency")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.0]
}
[sub_resource type="Animation" id="Animation_flixp"]
resource_name = "fade_in"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("FLOWER:transparency")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.0, 0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_6ihe1"]
_data = {
&"RESET": SubResource("Animation_hrxn4"),
&"fade_in": SubResource("Animation_flixp")
}
[node name="SteleD" type="Node3D"]
script = ExtResource("1_xe50d")
script = ExtResource("1_q5wc4")
[node name="Steles_" type="Node3D" parent="."]
@@ -200,6 +236,12 @@ shape = SubResource("CylinderShape3D_w60kl")
[node name="FLOWER" type="Sprite3D" parent="."]
transform = Transform3D(0.363695, 0.343112, 3.26848e-08, -0.180433, 0.191257, 0.425282, 0.291839, -0.309346, 0.262936, 0.0436658, 1.33738, 0.480269)
visible = false
transparency = 1.0
shaded = true
texture = ExtResource("6_q5wc4")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
&"": SubResource("AnimationLibrary_6ihe1")
}