Quintus to Android



我试过用谷歌搜索并阅读Quintus wiki,但没有解决方案。为什么quintus platformer需要服务器来运行?因为这一点,我无法使用phonegap或cocoonjs将我的项目转换为android游戏。有没有一个更好的HTML5 2d游戏引擎,我可以在没有服务器的情况下使用?或者我能做些什么让quintus作为android应用程序运行?

所以我终于在一点帮助下让游戏运行起来了,所以我在这里自己回答。为了让游戏在安卓手机上运行,你需要引用一些代码。

请尝试从quintus.js文件中注释掉此代码,然后重试。我也面临着类似的问题,评论出这个代码解决了它:

if(document.location.origin === "file://" || document.location.origin === "null") {
  if(!Q.fileURLAlert) {
    Q.fileURLAlert = true;
    alert("Quintus Error: Loading assets is not supported from file:// urls - please run from a local web-server and try again");
  }
  return errorCallback();

然后使用CocoonJSWebview+编译并安装debug.apk以运行游戏。

最新更新