soport de gamepad per a wasm
This commit is contained in:
@@ -152,7 +152,9 @@ Director::Director() {
|
||||
// i desactivem el borde per aprofitar al màxim l'espai del canvas.
|
||||
Options::video.fullscreen = false;
|
||||
Options::window.zoom = 4;
|
||||
Options::video.border.enabled = false;
|
||||
Options::video.border.enabled = true;
|
||||
Options::video.border.height = 8;
|
||||
Options::video.border.width = 8;
|
||||
#endif
|
||||
|
||||
// Configura la ruta y carga los presets de PostFX
|
||||
@@ -197,9 +199,15 @@ Director::Director() {
|
||||
|
||||
#ifdef _DEBUG
|
||||
Debug::init();
|
||||
#ifdef __EMSCRIPTEN__
|
||||
// A wasm el debug.yaml viu a SYSTEM_FOLDER (MEMFS no persistent) i no està
|
||||
// disponible. Saltem el loadFromFile i entrem directament a la GAME.
|
||||
SceneManager::current = SceneManager::Scene::GAME;
|
||||
#else
|
||||
Debug::get()->setDebugFile(Resource::List::get()->get("debug.yaml"));
|
||||
Debug::get()->loadFromFile();
|
||||
SceneManager::current = Debug::get()->getInitialScene();
|
||||
#endif
|
||||
MapEditor::init();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user