diamond rush game for nokia x2-01 320x240

Diamond Rush - Game For Nokia X2-01 320x240

// Tile types private static final byte TILE_EMPTY = 0; private static final byte TILE_WALL = 1; private static final byte TILE_DIAMOND = 2; private static final byte TILE_PLAYER = 3; private static final byte TILE_EXIT = 4; private static final byte TILE_EXIT_OPEN = 5;

private byte[][] map = new byte[HEIGHT][WIDTH]; private int playerX, playerY; private int diamondsTotal, diamondsCollected; private boolean exitOpen; diamond rush game for nokia x2-01 320x240

private Random random = new Random();

// Dig pathways (simple maze-like open space) for (int y = 1; y < HEIGHT-1; y++) for (int x = 1; x < WIDTH-1; x++) if (random.nextInt(100) < 70) // 70% open space map[y][x] = TILE_EMPTY; else map[y][x] = TILE_WALL; // Tile types private static final byte TILE_EMPTY

© 2019-2025

image/svg+xml

powered by Rother OSS