如何在Chrome打包的网络应用程序的manifest.json文件中启动SWF游戏? [英] How to launch my swf game in my manifest.json file for my Chrome packaged web app?

查看:137
本文介绍了如何在Chrome打包的网络应用程序的manifest.json文件中启动SWF游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正努力以打包的网络应用程序的形式在Chrome商店中获得我的第一个Flash游戏.

I'm struggling to get my first Flash game on the Chrome store as packaged web app.

我设法在网上找到的所有教程都是过时且过时的,或者缺少像我这样的菜鸟的关键信息.

All the tutorials I manage to find online are old and obsolete, or missing crucial info for a noob like me.

到目前为止,这是我的manifest.json文件的内容:

This is what I have so far for my manifest.json file:

{
  "name": "Snappy Turtle",
  "description": "Swim dangerous waters.",
  "version": "1.8",
  "manifest_version": 2,
   "app": {
   "background": {
      "scripts": ["background.js"]
    }
  },
  "icons": { "16": "favicon.png", "128": "icon.png" }
}

在混合中的某个地方,我需要类似以下内容的东西,这样它才能真正启动我的游戏:

Somewhere in the mix I need something like the following so it will actually launch my game:

    "launch": {
      "local_path": "index.html"
    }
  },

但是我以任何方式尝试添加它都会出错,当然,如果我不进行介绍,也不会报告错误,但是游戏将无法运行. ;)

but any way I try to add it I get errors, and of course, if I leave it out, no error report, but then the game wont run. ;)

你们中的任何一个真正知道自己在做什么的人是否可以向我指出以chrome可以实际接受的方式添加这一关键部分的正确方法?

Can any of you kind people who actually know what they're doing please point out to me the proper way to add this crucial bit in a way that chrome will actually accept?

推荐答案

(新的)Chrome应用程序无法做到这一点.

You can't do it with a (new) Chrome App.

来自已禁用的网络功能:

已禁用:Flash
解决方法::使用HTML5平台.

Disabled: Flash
Workaround: Use HTML5 Platform.

您可以通过将外部页面嵌入到<webview>中来使其工作,但我怀疑它是否可以工作-我的猜测是该禁令扩展到了Webview内容.

You might get it working by embedding an external page in a <webview>, but I doubt it will work - my guess is that the ban extends to webview content.

仅供参考,Chrome网上应用店中的所有Flash游戏应用"都不是Chrome应用,而是托管应用(也称为可安装的网络应用).请注意,它们的文档是当前已损坏,仍可在本教程中找到.

FYI, all flash game "apps" in the Chrome Web Store are not Chrome Apps, but hosted apps (also called installable web apps). Note that the documentation for them is currently broken, there are still traces at this tutorial.

这篇关于如何在Chrome打包的网络应用程序的manifest.json文件中启动SWF游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆