Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在移动浏览器中强制HTML5游戏以横向模式加载?_Html_Html5 Canvas_Coronasdk_Phaser Framework_Mobile Browser - Fatal编程技术网

如何在移动浏览器中强制HTML5游戏以横向模式加载?

如何在移动浏览器中强制HTML5游戏以横向模式加载?,html,html5-canvas,coronasdk,phaser-framework,mobile-browser,Html,Html5 Canvas,Coronasdk,Phaser Framework,Mobile Browser,我正在开发一个2D射击游戏在景观模式。当我在桌面上查看它时,它运行良好。我也想在手机方面给大家同样的体验。不考虑用户的方向 可能吗?如果是,如何实现它?如果我理解正确,您要做的是锁定设备上可能的方向。为此,您需要编辑build.settings文件上的设置,例如: orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }

我正在开发一个2D射击游戏在景观模式。当我在桌面上查看它时,它运行良好。我也想在手机方面给大家同样的体验。不考虑用户的方向


可能吗?如果是,如何实现它?

如果我理解正确,您要做的是锁定设备上可能的方向。为此,您需要编辑build.settings文件上的设置,例如:

orientation =
{
    default = "landscapeRight",
    supported =
    {
        "landscapeRight", "landscapeLeft"
    }
}

请参阅“应用程序定位”部分中的官方文档。

开发游戏时是否可能复制Do use Corona(www.coronalabs.com)?@ldurniat:D是的。