fixed saving & added first basic save creation menu

This commit is contained in:
2025-10-15 05:36:33 +02:00
parent 283e3cbb5a
commit f87cc28c57
12 changed files with 155 additions and 28 deletions

View File

@@ -1,15 +1,15 @@
extends Node
var config: Config = Config.new()
var config: Config = Config.new("config")
func _ready() -> void:
Save.load(config)
config.load()
toggle_fullscreen()
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("fullscreen"):
config.fullscreen = !config.fullscreen
Save.save(config)
config.save()
toggle_fullscreen()
func _notification(what: int) -> void: