now saving persistent data

includes number of enemies killed, number of times died, last killed
This commit is contained in:
derek
2024-12-02 13:09:52 -06:00
parent 211c243624
commit 842cc7ecfd
9 changed files with 180 additions and 39 deletions

15
scripts/crown.gd Normal file
View File

@@ -0,0 +1,15 @@
extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
print("CROWN IN SCENE")
var target = get_node(SaveLoad.last_hit_path)
if target:
global_rotation = Vector3(0,0,0)
global_transform.origin = target.global_position + Vector3(0,2,0)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass