Lots of work on saving, enemies and object positions are now saved

This commit is contained in:
Derek
2024-12-02 22:52:21 -06:00
parent a9aaed9c6f
commit 299257e0d9
22 changed files with 186 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=75 format=4 uid="uid://djr7vnr1hcx82"]
[gd_scene load_steps=76 format=4 uid="uid://djr7vnr1hcx82"]
[ext_resource type="Script" path="res://scripts/spider.gd" id="1_7e7fe"]
[ext_resource type="Texture2D" uid="uid://dmyn4eq2r12ue" path="res://assets/Models/spider1.albedoRAW.png" id="1_di6b8"]
@@ -816,7 +816,10 @@ _surfaces = [{
[sub_resource type="BoxShape3D" id="BoxShape3D_xxx55"]
size = Vector3(0.816284, 0.725159, 0.75531)
[node name="spider" type="CharacterBody3D" groups=["enemy"]]
[sub_resource type="SphereShape3D" id="SphereShape3D_v8dp4"]
radius = 0.201
[node name="spider" type="CharacterBody3D" groups=["enemy", "persist"]]
collision_layer = 8
collision_mask = 9
script = ExtResource("1_7e7fe")
@@ -1010,6 +1013,10 @@ mesh = SubResource("ArrayMesh_v85cv")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0258179, 1.03281, 0.00894165)
shape = SubResource("BoxShape3D_xxx55")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.33052, 0.429336)
shape = SubResource("SphereShape3D_v8dp4")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
path_height_offset = 0.5
avoidance_enabled = true