Wiki / Getting started
Play Checkpoint Run
Build and play the included four-move keypad game, then reach the gold goal.
Open the sample
Download checkpoint-run.j2meproj below and double-click it. You can also choose File → Open Example Project… in Studio. Opening a bundled example creates a personal copy in Documents\J2ME Studio\Examples. With the phone tools installed, press Test MIDlet to launch the game.
The checker tile starts near the left side of the track; the gold tile is the goal. The counter shows how many moves you have made.
Reach the goal
In the emulator, press Numpad 6 four times. Each press moves the checker one step to the right. The fourth move reaches the gold goal and shows Goal reached! Close the emulator and choose Test MIDlet to restart. This time, try 4, 2, or 8 to move left, up, or down.
The sample uses a scene's game settings for the player, goal, and movement step. Its behavior runs in the exported MIDlet. Close the emulator before pressing Test MIDlet again.
Change the finish line
Close the emulator and select the goal in the Hierarchy. In the Inspector, move the goal from 0.60 to 0.85 on the X axis. Save your scene and press Test MIDlet again. Count the rightward moves it takes to reach the new position. If you go past it, move the goal onto a spot the checker visits. Studio saves your changes in the project file you opened.