 |
.: Midpgi :. |
 |
This prototype of platform game was designed to be run on mobiles, using Midlet API.
What you can see is a special compilation of the game
to run against the AWT api (j2se) instead of the midlet (j2me).
After spending a lot of time to improve speed of execution, I gave up (temporarily!)
as it takes about two minutes before the first scene can be displayed on my mobile.
(the classloader is really slow, plus the game precompute lots of things, in order
to make the game execution speed acceptable.) It also has lots of problems for displaying transparent sprites
Give it a try
Just below this paragraph is the applet to try the game (sorry it is quite buggy). First of all, click on the applet to have keyboard focus, then you can
use spaces and arrows to play.
In order to make the game look like what is on the mobile, there are two restrictions;
- Only a key can be pressed at a time. (I don't know if this is a limitation of the midlet functions I used or
of my phone Siemens C60, but that's pretty ennoying)
- There is a delay for adjusting fps close to actual speed on mobile
If you want to change the speed, type 0 for displaying the debug control
then 2 for increasing speed 1 or for decrease, then 0 and 0 for exiting debug control
Important Note (Read before playing!): This code was to be used with appletviewer so...
- On the first screen, move the axe in front of PLAY then press space. choosing QUIT will block the applet
- To receive the keyboard events you may need have the applet gain the focus. To do so simply click on it.
- If you refresh or reload this page the applet will be blocked. To run the applet again close the browser and try again.
The source
The source is available here for the applet version,
and the midlet one.
copyleft, -and commentleft :( -.
The code needs LOTS of refactoring,
however it is here if you want to have a look. please send me an email if you are using it.
On the mobile
If you want to give a try on your j2me compliant mobile, you can download the jads.