- char buffer[256];
- switch(pos) {
- case 0:
- switch(player_mode) {
- case 0: strcpy(buffer, "quit emerald mine"); break;
- case 1: strcpy(buffer, "single player"); break;
- case 2: strcpy(buffer, "teamwork"); break;
- }
- title_string(4, 0, 40, buffer);
- break;
- case 1:
- sprintf(buffer, "name: %s", player_name);
- title_string(5, 0, 40, buffer);
- break;
- case 2:
- sprintf(buffer, "level: %d", player_level);
- title_string(6, 0, 40, buffer);
- break;
- case 3:
- title_string(7, 0, 40, "highscores");
- break;
- case 4:
- title_string(8, 0, 40, "start");
- break;
- case 5:
- title_string(10, 1, 13, "played");
- title_string(10, 14, 26, "score");
- title_string(10, 27, 39, "won");
- break;
- case 6:
- sprintf(buffer, "%d", 0);
- title_string(11, 1, 13, buffer);
- sprintf(buffer, "%d", 0);
- title_string(11, 14, 26, buffer);
- sprintf(buffer, "%d", 0);
- title_string(11, 27, 39, buffer);
- break;
- }
+ int x, y;
+
+ RandomEM = 1684108901;
+
+ for (y = 0; y < HEIGHT; y++)
+ for (x = 0; x < WIDTH; x++)
+ Array[0][y][x] = ZBORDER;
+ for (y = 0; y < HEIGHT; y++)
+ for (x = 0; x < WIDTH; x++)
+ Array[1][y][x] = ZBORDER;
+ for (y = 0; y < HEIGHT; y++)
+ for (x = 0; x < WIDTH; x++)
+ Array[2][y][x] = ZBORDER;
+ for (y = 0; y < HEIGHT; y++)
+ for (x = 0; x < WIDTH; x++)
+ Array[3][y][x] = Xblank;
+
+ for (y = 0; y < HEIGHT; y++)
+ Index[0][y] = Array[0][y];
+ for (y = 0; y < HEIGHT; y++)
+ Index[1][y] = Array[1][y];
+ for (y = 0; y < HEIGHT; y++)
+ Index[2][y] = Array[2][y];
+ for (y = 0; y < HEIGHT; y++)
+ Index[3][y] = Array[3][y];
+
+ Cave = Index[0];
+ Next = Index[1];
+ Draw = Index[2];
+ Boom = Index[3];