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

@@ -0,0 +1,24 @@
extends RigidBody3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
add_to_group("persist")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func save():
var save_dict = {
"filename" : get_scene_file_path(),
"parent" : get_parent().get_path(),
"pos_x" : position.x,
"pos_y" : position.y,
"pos_z" : position.z,
"rot_x" : rotation.x,
"rot_y" : rotation.y,
"rot_z" : rotation.z,
}
return save_dict