开发者

java games with maximum portability

i want to program a simple java game, what should i consider to make it maximal portable? i'm pretty new to java, which grafik and rendering libraries should i use to make it easyly portable to mobile java (for mobile phones)? i can't develop it directly for mobile java, because i als开发者_Python百科o need a pc version. or should i jast develop strait forward for pc and do a completele new mobile version later?


I'd say do the PC version first (portable across Mac, Linux, Windows if that is a priority for you), and develop a (or even several) completely new version for mobile handsets.

There may be some code (and art work) that you can re-use, but not too much, as a (good) game will have to be very different for a mobile phone than for a PC, not just screen sizes and input methods, but the major changes in game play that those differences probably result in to make it still fun to play.

The code that you can reuse will likely need to be adapted for J2ME or Android, but better to worry about that later than trying to be overly cross-platform from the beginning (which would place limitations on functionality on the PC version, and eat up a lot of time, without being sure if it ever pays off).

Again, if anything, worry about portability within the several desktop environments, and within several handsets, but not too much about portability between the two.

Of course, if your game has a server-side component, it would be ideal to have only one version of the server code that can talk to clients on all platforms.


I think it's feasible to create a game that is portable across a wide range of platforms. While a desktop version of a J2ME game may look primitive, it does enable your users to preview the game before installing it. Check out my project JGame, which enables writing a game that works without changes on J2ME, Android, and PC. I believe the Slick project also has a working Android version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜