Diamond Rush Game For Nokia X2-01 320x240 -

Save the code as DiamondRush.java , compile with WTK (Wireless Toolkit), and package as a .jar file.

// Create outer walls for (int x = 0; x < WIDTH; x++) map[0][x] = TILE_WALL; map[HEIGHT-1][x] = TILE_WALL; for (int y = 0; y < HEIGHT; y++) map[y][0] = TILE_WALL; map[y][WIDTH-1] = TILE_WALL; diamond rush game for nokia x2-01 320x240

private Random random = new Random();