ajustant el jugador
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user