原生Android应用程序和phonegap应用程序之间的区别

发布于 2024-10-19 02:52:59 字数 477 浏览 1 评论 0原文

最近,我遇到了这个一箭多鸟框架 - http://phonegap.com/。

我确实看到它在尝试访问手机的本机功能时存在一些限制 - http://www.phonegap.com /特征。但目前这对我来说并不重要,因为我现在不需要这些本机功能。 (2D Tile 游戏)

我想知道,你们中有人使用上述框架开发过任何应用程序吗?您在以下方面发现了哪些差异:

  1. 最终产品的用户体验。该产品是否易于安装和执行?产品运行是否顺利? UI 看起来很华丽吗? ...
  2. 开发工作期间的开发人员经验。我们可以在技术上轻松地实现我们想要做的事情,就像我们可以通过本机应用程序做到的那样吗? ...

Recently, I came across this one stone kills multiple birds framework - http://phonegap.com/.

I do see it comes with some limitation when trying to access native features of a phone - http://www.phonegap.com/features. But it doesn't matter to me in current moment as I don't need those native features right now. (A 2D Tile game)

I was wondering, anyone of you has developed any app using the above framework? What is the differences you had found, in term of :

  1. User experience on the end product. Is the product easy to install and execute? Is the product running smoothly? Is the UI look flashy? ...
  2. Developer experience during development work. Can we technically achieve what we want to do easily as we can do it through native app? ...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对岸观火 2024-10-26 02:52:59

用phonegap制作2D游戏肯定是可以的,但是要让用户体验如你所愿就很难了。我建议你不要走那条路。

我还建议你暂时忘记支持 Windows Phone 7,假设你有额外的 1,900 美元,使用 Unity3d,假设你没有那么多钱,使用 Cocos2d,或者研究一些其他跨平台游戏引擎(有Android 的游戏引擎太多了,我很难跟踪所有的引擎)。 Cocos2d 仍然需要你用两种不同的语言进行编码,但至少它的 Api 在 iPhone 和 Android 之间相对相似,这会减少你必须做的移植工作。

另一个选择仍然是 Flash 构建器(并使用他们的 iPhone 代码生成器),但我建议不要使用它,因为它的 iPhone 代码库最近停滞太多,并且需要一段时间才能在 iPhone 上再次可用 -事情的一面。

我推荐的另一个游戏引擎是 AndEngine (AndEngine.org),但它仅适用于 Android。 iPhone 上没有同类产品,但无论如何,我还是强烈推荐这款产品。

Making a 2D game with phonegap is definitely possible, but it will be difficult to make the user experience as smooth as you want. I'd recommend you don't go that route.

I'd also suggest you forget about supporting Windows Phone 7 for now, use Unity3d assuming you have an extra $1,900 lying around, use Cocos2d assuming you don't have that kind of money, or investigate some other cross-platform game engine (there are so many game engines for android, it's hard for me to keep track of all of them). Cocos2d would still require you to code in two different languages, but at least its Api is relatively similar between iPhone and Android that it would cut down on the porting work you'd have to do.

Another option still is Flash builder (and using their code generator for the iPhone), but I'd recommend against it because its iPhone code base has stagnated too much recently, and it will take time for it to become usable again on the iPhone-side of things.

Another game engine I'd recommend is AndEngine (AndEngine.org), but that would be for Android only. That one has no iPhone equivalent, but still this is one that I'd highly recommend anyway.

著墨染雨君画夕 2024-10-26 02:52:59

Phonegap 采用 HTML+CSS+JavaScript 页面并围绕它包装应用程序。因此,如果您可以构建一个移动网站,并希望作为应用程序在许多平台上分发,phonegap 就是您的最佳选择。但当然,移动应用程序与原生应用程序的感觉并不一样。

如果您想了解移动网站的运作方式,请将您的手机指向此展示可能看起来像。当您具有 Web 开发背景并且本机电话开发对您来说是全新的时,您也可以考虑 PhoneGap。

Phonegap takes a HTML+CSS+JavaScript page and wraps an application around it. So if you can build a mobile website that you want to distribute as an app on many platforms, phonegap is the way to go. But of course a mobile app doesn't feel the same as a native one.

Point your mobile phone to this showcase if you want to get an impression on how mobile websites might look like. You might also consider phonegap when you have a background in web development and native phone development would be completely new for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文