Lots of work on saving, enemies and object positions are now saved
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=19 format=4 uid="uid://bdy5isxqwbjq8"]
|
||||
[gd_scene load_steps=20 format=4 uid="uid://bdy5isxqwbjq8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/broken_object_spawn.gd" id="1_3nyc3"]
|
||||
[ext_resource type="AudioStream" uid="uid://bn4y63ws8jscs" path="res://assets/Audio/glass-break-two-thick-glasses-SBA-300121605.wav" id="1_vmlqu"]
|
||||
[ext_resource type="Script" path="res://scripts/rigidbody_generic.gd" id="2_hod7s"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3phni"]
|
||||
resource_name = "bottle1"
|
||||
@@ -202,6 +203,7 @@ sound = NodePath("Piece 1/BrokenSound")
|
||||
[node name="Piece 1" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
|
||||
collision_layer = 32
|
||||
collision_mask = 125
|
||||
script = ExtResource("2_hod7s")
|
||||
|
||||
[node name="bottle1_broken_cell" type="MeshInstance3D" parent="Piece 1" groups=["scene_rigidbody"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.066139, 0.324223, -0.067418)
|
||||
@@ -218,6 +220,7 @@ stream = ExtResource("1_vmlqu")
|
||||
[node name="Piece 2" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
|
||||
collision_layer = 32
|
||||
collision_mask = 125
|
||||
script = ExtResource("2_hod7s")
|
||||
|
||||
[node name="bottle1_broken_cell_001" type="MeshInstance3D" parent="Piece 2" groups=["scene_rigidbody"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00347066, -0.310987, 0.106893)
|
||||
@@ -231,6 +234,7 @@ shape = SubResource("ConvexPolygonShape3D_2ytqg")
|
||||
[node name="Piece 3" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
|
||||
collision_layer = 32
|
||||
collision_mask = 125
|
||||
script = ExtResource("2_hod7s")
|
||||
|
||||
[node name="bottle1_broken_cell_002" type="MeshInstance3D" parent="Piece 3" groups=["scene_rigidbody"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0177096, 0.440996, 0.0680487)
|
||||
@@ -244,6 +248,7 @@ shape = SubResource("ConvexPolygonShape3D_78sq8")
|
||||
[node name="Piece 4" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
|
||||
collision_layer = 32
|
||||
collision_mask = 125
|
||||
script = ExtResource("2_hod7s")
|
||||
|
||||
[node name="bottle1_broken_cell_003" type="MeshInstance3D" parent="Piece 4" groups=["scene_rigidbody"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000561402, -0.247355, -0.010017)
|
||||
@@ -257,6 +262,7 @@ shape = SubResource("ConvexPolygonShape3D_xqauf")
|
||||
[node name="Piece 5" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
|
||||
collision_layer = 32
|
||||
collision_mask = 125
|
||||
script = ExtResource("2_hod7s")
|
||||
|
||||
[node name="bottle1_broken_cell_004" type="MeshInstance3D" parent="Piece 5" groups=["scene_rigidbody"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.030646, 0.558282, -0.0404844)
|
||||
|
||||
Reference in New Issue
Block a user