first commit

This commit is contained in:
Leonid Pershin
2026-08-10 20:39:06 +03:00
commit f16f60445c
281 changed files with 43576 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
extends Node3D
## Сцена-заглушка вместо настоящей игры.
##
## Нужна ровно для двух вещей: показать контракт с SaveManager и дать
## меню паузы что останавливать. Куб крутится только когда игра не на паузе,
## а его угол попадает в сохранение — по нему видно, что загрузка работает.
const SPIN_SPEED := 0.6
@onready var _saves: SaveManagerService = get_node("/root/SaveManager")
@onready var _box: Node3D = $BoxA
func _ready() -> void:
add_to_group(SaveManagerService.PERSIST_GROUP)
_saves.begin_session(scene_file_path)
func _process(delta: float) -> void:
_box.rotate_y(delta * SPIN_SPEED)
func save_data() -> Dictionary:
return {"box_rotation": _box.rotation.y}
func load_data(data: Dictionary) -> void:
_box.rotation.y = float(data.get("box_rotation", 0.0))