将Java SE游戏移植到Java ME [英] Porting Java SE Game to Java ME

查看:230
本文介绍了将Java SE游戏移植到Java ME的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习用Java编程,并希望为Blackberry平台开发一款移动国际象棋游戏。

I'm learning to program in Java and would like to develop a mobile Chess game for the Blackberry platform.

我建议,作为初学者,我应该构建适合常规桌面使用的游戏,并避免现在更复杂的移动开发。有人告诉我,一旦SE中的开发完成,我就可以将游戏移植到Java ME。

It was recommended to me that, as a beginner, I should build the game for regular desktop use and avoid the more complex mobile development for now. I was told that I can port the game to Java ME once development in SE is complete.

我的问题是:这真的有可能吗?在SE中开发时我应该记住SE和ME之间存在哪些限制?

My question is: is this really possible? What kinds of limitations exist between SE and ME that I should keep in mind while developing in SE?

为了让游戏在我的Blackberry上运行,我不得不回去撤消我的大部分工作。

I'd hate to have to go back and undo most of my work in order to get the game to work on my Blackberry.

推荐答案

我不确定这个建议是否特别好。

I'm not sure the advice is especially good.

UI类不同,所以那部分必须重做。用户界面将是工作的重要部分,为什么要两次呢?为什么确实想要做J2ME时学习SE UI API?

The UI classes are different, so that part would have to be redone. The UI would be a significant part of the work, so why do it twice? Why learn the SE UI APIs if you really want to do J2ME?

有一个关于J2SE和J2ME之间的差异,就是昨天的问题 - 包含有用的链接。

There was an SO question just yesterday on the differences between J2SE and J2ME - that contains useful links for you.

如果你的目标是非常专门针对黑莓,那么为什么不设置您的开发环境,将Hello World应用程序部署到BlackBerry模拟器,作为您的第一步?您可能希望研究RIM自己的API以及可移植J2ME类,因为它们可以让您更好地与设备硬件集成(点击轮等)。

If your aim is to very specifically target BlackBerry then why not set up your development environment to deploy a 'Hello World' app to a BlackBerry simulator as your first step? You might want to investigate RIMs own APIs as well as 'portable' J2ME classes as they will give you better integration with the device hardware (clickwheel and so on).

这篇关于将Java SE游戏移植到Java ME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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