collision map

This commit is contained in:
2026-04-06 20:27:35 +02:00
parent ef04500a44
commit 98715ef3a7
36 changed files with 489 additions and 297 deletions

View File

@@ -136,7 +136,10 @@ void Debug::loadFromFile() {
auto yaml = fkyaml::node::deserialize(content);
// Detecta si falta alguna clave esperada para regenerar el fichero con los nuevos defaults
for (const char* key : {"room", "spawn_x", "spawn_y", "spawn_flip", "initial_scene", "lazy_loading", "render_info"}) {
if (!yaml.contains(key)) { needs_save = true; break; }
if (!yaml.contains(key)) {
needs_save = true;
break;
}
}
if (yaml.contains("room")) {
spawn_settings_.room = yaml["room"].get_value<std::string>();