首先,抱歉我的英语不好。
我要开发一个2D Android游戏,里面会有很多特效,比如血溅,炸弹爆炸等等。在研究的时候,我发现ActionScript有很多教程,而且已经做出了看起来很神奇的效果。我的问题是,我可以在我的 Android 应用程序中使用(以任何方式)ActionScript 效果吗?或者这更像是一个 ActionScript 问题,我可以以某种格式导出 AS 效果并在 Android 应用程序中使用/导入它们吗?当然,性能也很重要,这些效果会占用大量CPU/GPU吗?
任何建议都是合适的。
First of all, sorry for my bad English.
I'm going to develop an 2D Android game which is going to have a lot of effects like blood splatting, bomb explosions, etc.. While I was researching, I found out that ActionScript has a lot tutorials and already made effects that look amazing. My question is, can I use (in any way) ActionScript effects in my Android app? Or is it more a ActionScript question, could I export the AS effects in some format and use/import them in the Android app? Off course, performance is also very important, would these effects use a lot CPU/GPU?
Any suggestion would be appropriate.
发布评论
评论(1)
除非您通过 AIR 开发应用程序,否则我不建议这样做。您是否看过用于开发游戏的 Android 专用库?例如libgdx。
另外,对于爆炸的东西,你基本上需要绘制不同方向的粒子,这可以使用像 补间。
Unless you are developing your app over AIR, I won't recommend to do so. Have you taken a look at the Android-specific libraries for developing games? For instance libgdx.
Also, for explosion stuff you basically need to draw particles that go in different directions, which can be easily done using a library like Tween.