ajustant el jugador

This commit is contained in:
2026-04-05 22:47:12 +02:00
parent 20ad7d778f
commit 6305280e62
51 changed files with 487 additions and 450 deletions

View File

@@ -160,8 +160,21 @@ Director::Director() {
// Crea los objetos
Screen::init();
#ifdef _DEBUG
// En debug inicializamos Debug antes de Cache para leer el flag lazy_loading
Debug::init();
Debug::get()->setDebugFile(Resource::List::get()->get("debug.yaml"));
Debug::get()->loadFromFile();
#endif
// Initialize resources (works for both release and development)
#ifdef _DEBUG
Resource::Cache::init(Debug::get()->getLazyLoading()
? Resource::Cache::LoadingMode::LAZY
: Resource::Cache::LoadingMode::EAGER);
#else
Resource::Cache::init();
#endif
Notifier::init("", "8bithud");
RenderInfo::init();
Console::init("8bithud");
@@ -182,9 +195,6 @@ Director::Director() {
Input::get()->applyGamepadBindingsFromOptions();
#ifdef _DEBUG
Debug::init();
Debug::get()->setDebugFile(Resource::List::get()->get("debug.yaml"));
Debug::get()->loadFromFile();
SceneManager::current = Debug::get()->getInitialScene();
MapEditor::init();
#endif