是否所有的Flash游戏很容易地移植到Adobe AIR的部署在iOS? [英] Can all flash games be readily ported to adobe air for deployment on ios?

查看:292
本文介绍了是否所有的Flash游戏很容易地移植到Adobe AIR的部署在iOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否所有的Flash游戏很容易地移植到Adobe AIR的部署在iOS?举例来说,如果我开发一个2D平台游戏在AS3,我可以简单地重新包,用于部署在使用Adobe AIR,而无需修改codeBase的的iOS?

Can all flash games be readily ported to adobe air for deployment on ios? For example, if I develop a 2D platform game in AS3, can I simply re-package that for deployment on iOS using Adobe AIR, without needing to modify the codebase?

如果可能的话,我该怎么办呢?只是重新包装使用AIR SDK中的ADT工具?

If possible, how do I do that? Just re-package using the AIR SDK's ADT tool?

在我的游戏,我用的是鼠标和键盘控制人物......主人公跟随鼠标指针和左击火......这将如何转化为触摸?

In my game, I use the mouse and keyboard to control the character... the hero follows the mouse cursor and left click fires... how will that translate to touch?

我是新来的AIR和甚至还没有拿到一部iPhone呢。但我想知道的可能性。

I'm new to AIR and haven't even got an iPhone yet. But I'm interested to know the possibilities.

任何帮助/提示/建议将不胜AP preciated。

Any help/tips/advice would be greatly appreciated.

推荐答案

任何Flash内容可以被打包AIR为iOS,Android和黑莓手机。

Any Flash content can be packaged with AIR to iOS, Android, and BlackBerry.

从Flash Professional中,这可以通过更改发布设置完成的:

From Flash Professional, this can be done by changing the Publish Settings:

针对AIR 3.3是最优的,与iOS的更高的性能。这AIR SDK可以覆盖到Flash专业版的发布设置;或者,您可以使用ADT命令行打包。

Targeting AIR 3.3 is optimal, with higher performance for iOS. This AIR SDK can be overlaid to Flash Professional publish settings; or, you can use the ADT command line packager.

下载AIR 3.0 SDK。
确保JRE,或者使用从Flash Builder之一。
执行ADT为您的SWF打包到一个IPA:

Download AIR 3.0 SDK.
Assure JRE, or use the one from Flash Builder.
Execute adt to package your SWF to an IPA:

adt -package -target [ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc]
    -keystore iosPrivateKey.p12 -storetype pkcs12 -storepass qwerty12
    -provisioning-profile ios.mobileprovision
    HelloWorld.ipa
    HelloWorld-app.xml
    HelloWorld.swf icons Default.png

重要的是要注意,所有的可执行文件code必须驻留在一个单一的SWF到iOS平台上运行。不支持SWFLoading或任何执行code动态加载的SWF。因此,链接所有Flash在一个SWF。

It's important to note that all executable code must reside in a single SWF to run on the iOS platform. SWFLoading or any dynamically loaded SWF that executes code is not supported. So, link all your Flash to a single SWF.

性能也是一个因素 - 沉重的动画和矢量图形的输入框,需要优化的移动平台。

Performance is also a factor - heavy animation and vector graphics on enter frame will require optimization for mobile platforms.

按设计,有许多方面需要考虑。

Per design, there are many aspects to consider.

应用程序全屏运行,每个设备的不同分辨率。您可以利用的动态调整,以适应这些多屏或目标应用程序每一个特定的分辨率完美的体系。

Apps run full screen with different resolutions per device. You can leverage elegant systems of dynamically resizing to adapt to these multiple screens or target a specific resolution per app.

如果您现有的Flash项目不兼容的宽高比,您将需要更新您的布局。

If your existing Flash project is not a compatible aspect ratio, you will need to update your layout.

鼠标转换体面触摸,但也有细微的差别是不直观。例如,悬停普遍较差的触摸来实现。同时,鼠标光标并不妨碍喜欢牵着你的手在游戏区的触摸视图。

Mouse translates decently to touch, but there are subtle nuances that are not intuitive. For example, hover is generally poor to implement in touch. As well, the mouse cursor does not obstruct the view like holding your hand over the game play area for touch.

移动触摸设备增加与多点触控和手势可能被利用的互动能力。

Mobile touch devices increase capability of interaction with multi-touch and gestures which may be leveraged.

在屏幕上的键盘可能会被激活;然而,将视口的一部分,并且将很难与大多数游戏互动。

On-screen keyboard may be activated; however, will take a portion of your viewport and would be difficult to interact with for most games.

您将要翻译的键盘和鼠标事件,保持平价的游戏方式。

You'll want to translate keyboard and mouse events in a way that keeps parity with your game play.

参考文献:

  • <一个href="http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html">http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html
  • <一个href="http://www.adobe.com/devnet/air/articles/packaging-air-apps-android.html">http://www.adobe.com/devnet/air/articles/packaging-air-apps-android.html
  • <一个href="http://www.adobe.com/devnet/air/articles/packaging-air-apps-blackberry.html">http://www.adobe.com/devnet/air/articles/packaging-air-apps-blackberry.html
  • http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html
  • http://www.adobe.com/devnet/air/articles/packaging-air-apps-android.html
  • http://www.adobe.com/devnet/air/articles/packaging-air-apps-blackberry.html

这篇关于是否所有的Flash游戏很容易地移植到Adobe AIR的部署在iOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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