Home » Community » Forums » » An Introduction to Developing for Mobile Devices Using J2ME/MIDP (Part 1)
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 An Introduction to Developing for Mobile Devices Using J2ME/MIDP (Part 1)
Post Reply 
I really liked your article, thanks for posting it. Those myths of J2ME development are real killers when it comes to trying to make a great game.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

K im ready for some J2ME and MIDP development goodness, I have everything downloaded and ready to rock. Anyone know of any wrappers for this that provide a nice sprite class and that? oh and another question that I dont think was covered in the article. How hard is it to do multiplayer, can those networks the phones use handle multiplayer games? Do you have to do anything different to handle the fact the network is wirless through a cell phone?



 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Hi, glad you liked the article.

As for multiplayer, MIDP defines one protocol as mandatory, Http. Http isnt the most optimal protocol to use when it comes to speed/efficiency. Neither can you push data to the client. It is request/response based. (it is common to have a seperate Thread which makes repeated requests to the server to send data and also check if there is any data available for the client)

Some devices support tcp or udp which allows for a more efficient and common way of networking.

The fact that the phone is a wireless device doesnt change things much in that sense, http is still http. It is just that you must treat connection timeouts and slow response times are a matter of fact. slow responses means around 1-3 seconds "ping-time" on a good day

So most multiplayer j2me games these days are turn-based, an example could be:
http://games.macrospace.com/cannons_me.shtml

For other platforms like Symbian and mophun there are some cool projects:

http://www.tibiame.com/home/?language=en

hope that answers your question!

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Great article... only problem I found... was how to move it onto the real phone. The way I tried to do it, was through WAP. So I spent a while trying to figure out how to make a wap webpage... eventually I came up with
http://qixgames.za.net/wap/
which worked... but my game (speed) cant be downloaded. It downloads and gives a System Error on the phone - anyone know why or how to fix it ?

and can you maybe include help pon making wap pages/downloads in part 2 ?

 User Rating: 1015    Report this Post to a Moderator | Link

Hi, yes thats a good idea will include tips on delivery.

in regards of the error when downloading
what phone do you have?
have you made sure the the MIDlet-Jar-Size attribute in the jad is exactly the same as the actual jar file size?

also you will need the following mime types on your server:

jad : text/vnd.sun.j2me.app-descriptor
jar : application/java-archive

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

fab article - can't wait for part two!

I've been programming with Mophun for a bit and really like that SDK, but have never really tried Java before. Your article is a great place to start. Thanks!

t.

 User Rating: 1015    Report this Post to a Moderator | Link

great article (got me into j2me dev)

just one question
i've downloaded netbeans and it somehow doesn't recognise any of javax.microedition.* imports. why? Does anyone know any good article/tutorial on how to start with this darn thing.

What about other easy-to-use IDEs for j2me?

AlienX

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

use jbuilder mobile edition instead.

 User Rating: 1015    Report this Post to a Moderator | Link

really hope to read the part 2 as soon as possible......!

 User Rating: 1015    Report this Post to a Moderator | Link

Fantastic artilce.

Having just got a new Nokia 3300 on Wednesday I decided to turn my attention away from the world of DirectX 3D games to simpler 2D games of the 8 bit console days of old (ah the memories).

This article was just what I was looking for. A no nonsense step by step introduction.

The problems the others are having are more to do with indivdual devices, which in something of this nature the solution can vary from device to device.

For the others: If you have a Nokia phone, Nokia have an SDK that has some nifty little tools that generate your JAR and JAD files for you. You can then also test them on emulators (they do one for my 3300 ). As for getting the application to my phone, i connected the phone to the PC using a pop port.

Anyway I am looking forward to any future additions to this article. It has helped me greatly on my steps to mobile phone programming.

Many Thanks

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

great article, is part two ever coming?


 User Rating: 1045   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: