Super Mario Bros Java Game 240x320 -

Several variations were developed for mobile devices, each with varying levels of accuracy to the original NES classic: Super Mario Bros. Super Show (3-in-1)

public void startApp() display = Display.getDisplay(this); canvas = new GameCanvas(); exitCommand = new Command("Exit", Command.EXIT, 1); canvas.addCommand(exitCommand); canvas.setCommandListener(this); display.setCurrent(canvas); canvas.start(); super mario bros java game 240x320

Super Mario Bros. Java game for 240×320

The demonstrates that a responsive, playable platformer can be built within the strict constraints of Java ME. Key successes include: Several variations were developed for mobile devices, each

// Enemy: x, y, width, height, direction (1=right, -1=left) private int[][] enemies = 400, 230, 20, 20, 1, 700, 130, 20, 20, -1, 1100, 180, 20, 20, 1, 1500, 80, 20, 20, -1 ; Tile size: 16×16 or 8×8 pixels (use 16×16

If you manage to get your hands on a working copy, here are secrets specific to the 240x320 port:

Zurück
Oben Unten