MIDP 2.0 Games: a Step-by-Step Tutorial with Code Samples (Step 4)
Now that I’ve discussed the special functions of a GameCanvas, I’d like to go over the main function of a Canvas in general, namely painting the screen. This usually takes place in the method paint(Graphics g) which you can override. The Graphics object can be queried for screen dimensions and then can be used to […]
MIDP 2.0 Games: a Step-by-Step Tutorial with Code Samples (Step 3)
The GameCanvas Class The GameCanvas class represents the area of the screen that the device has allotted to your game. The javax.microedition.lcdui.game.GameCanvas class differs from its superclass javax.microedition.lcdui.Canvas in two important ways: graphics buffering and the ability to query key states. Both of these changes give the game developer enhanced control over precisely when the […]
MIDP 2.0 Games: a Step-by-Step Tutorial with Code Samples (Step 2)
The MIDlet Class Now it’s time to get started on the real game. If you copy the code from this section and all of the following sections, it should compile together to form the example game “Tumbleweed.” The MIDlet class controls some of the basic items that are common to all MIDlets (such as start […]
MIDP 2.0 Games: a Step-by-Step Tutorial with Code Samples (Step 1)
Writing games for small devices is easy and fun with the new MIDP 2.0 API. The biggest difference for the game developer between MIDP 1.0 and MIDP 2.0 is enhanced graphics capabilities. With MIDP 1.0 you can certainly write some fun games–those of us who remember the Atari 2600 will remember that the games were […]
What is Android?
What is Android? Android is a software stack for mobile devices that includes an operating system, middleware and key applications. This early look at the Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Features Application framework enabling reuse and replacement of components […]