Rewrote entity system
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://yhtpoum3eek7"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://yhtpoum3eek7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ixwikdguyhf0" path="res://scripts/Entity/RosaController.gd" id="1_3g383"]
|
||||
[ext_resource type="Script" uid="uid://ixwikdguyhf0" path="res://scripts/Entity/Rosa.gd" id="1_r5ufg"]
|
||||
[ext_resource type="Script" uid="uid://dtjjqp2atjyhr" path="res://scripts/Entity/Entity.gd" id="1_rvn3n"]
|
||||
[ext_resource type="Script" uid="uid://jd50n00bo05y" path="res://scripts/Entity/RosaCamera.gd" id="2_tr66j"]
|
||||
[ext_resource type="Script" uid="uid://cjfcpi7sxentf" path="res://scripts/Entity/Component/EntityDirection.gd" id="2_vcxxc"]
|
||||
[ext_resource type="Shader" uid="uid://7h2axb2tsh17" path="res://shaders/NPC Shader.gdshader" id="3_j5vis"]
|
||||
[ext_resource type="Script" uid="uid://c5nfs0m6ua4eb" path="res://scripts/Entity/Component/EntityMovement.gd" id="4_7s3uq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cofrgefp8e617" path="res://textures/human.png" id="4_rvn3n"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ls7r8"]
|
||||
@@ -17,13 +20,34 @@ shader = ExtResource("3_j5vis")
|
||||
shader_parameter/npcTexture = ExtResource("4_rvn3n")
|
||||
shader_parameter/color = Color(1, 1, 1, 1)
|
||||
shader_parameter/frame = 0
|
||||
shader_parameter/direction = 1
|
||||
shader_parameter/direction = 2
|
||||
|
||||
[node name="Rosa" type="CharacterBody3D"]
|
||||
script = ExtResource("1_3g383")
|
||||
collision_layer = 2
|
||||
collision_mask = 258
|
||||
script = ExtResource("1_r5ufg")
|
||||
metadata/_custom_type_script = "uid://ixwikdguyhf0"
|
||||
|
||||
[node name="Entity" type="Node" parent="."]
|
||||
script = ExtResource("1_rvn3n")
|
||||
metadata/_custom_type_script = "uid://dtjjqp2atjyhr"
|
||||
|
||||
[node name="EntityDirection" type="Node" parent="Entity" node_paths=PackedStringArray("meshInstance")]
|
||||
script = ExtResource("2_vcxxc")
|
||||
meshInstance = NodePath("../../MeshInstance3D")
|
||||
direction = 2
|
||||
metadata/_custom_type_script = "uid://cjfcpi7sxentf"
|
||||
|
||||
[node name="EntityMoving" type="Node" parent="Entity" node_paths=PackedStringArray("characterBody", "entity", "entityDirection")]
|
||||
script = ExtResource("4_7s3uq")
|
||||
characterBody = NodePath("../..")
|
||||
entity = NodePath("..")
|
||||
entityDirection = NodePath("../EntityDirection")
|
||||
movementType = 0
|
||||
|
||||
[node name="Rosa Camera" type="Camera3D" parent="." node_paths=PackedStringArray("follow")]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.130388, 0.991463, 0, -0.991463, 0.130388, 0, 3.14994, 0.404846)
|
||||
current = true
|
||||
fov = 30.0
|
||||
script = ExtResource("2_tr66j")
|
||||
follow = NodePath("..")
|
||||
@@ -32,6 +56,6 @@ follow = NodePath("..")
|
||||
shape = SubResource("CapsuleShape3D_ls7r8")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.173648, 0.984808, 0, -0.984808, 0.173648, 0.00989294, 0, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.173648, 0.984808, 0, -0.984808, 0.173648, 0, 0, 0)
|
||||
mesh = SubResource("QuadMesh_dyaax")
|
||||
surface_material_override/0 = SubResource("ShaderMaterial_fegux")
|
||||
|
Reference in New Issue
Block a user