-static unsigned char keymatrix[32];
-
-static int player_mode;
-static char player_name[32];
-static int player_level;
-
-static void drawmenu(int pos)
-{
- 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, 3, 13, "played");
- title_string(10, 14, 26, "score");
- title_string(10, 27, 37, "won");
- break;
-
- case 6:
- sprintf(buffer, "%d", 0);
- title_string(11, 3, 13, buffer);
- sprintf(buffer, "%d", 0);
- title_string(11, 14, 26, buffer);
- sprintf(buffer, "%d", 0);
- title_string(11, 27, 37, buffer);
- break;
- }
-}