forked from snapshot112/minigame-menu
snake wip
This commit is contained in:
@@ -48,7 +48,7 @@ void update_grid(rooster *rp, char c, int x, int y) {
|
||||
* Clears the console and prints the victory message.
|
||||
*/
|
||||
static void display_victory(void) {
|
||||
clear();
|
||||
erase();
|
||||
mvprintw(2,5, "YOU WON!!!!!");
|
||||
refresh();
|
||||
}
|
||||
@@ -60,7 +60,7 @@ static void display_victory(void) {
|
||||
* Clears the console and prints the GAME OVER message.
|
||||
*/
|
||||
static void display_loss(void) {
|
||||
clear();
|
||||
erase();
|
||||
mvprintw(2,5, "GAME OVER");
|
||||
refresh();
|
||||
}
|
||||
@@ -72,7 +72,7 @@ static void display_loss(void) {
|
||||
* Clears the console and prints the quit message.
|
||||
*/
|
||||
static void display_quit(void) {
|
||||
clear();
|
||||
erase();
|
||||
mvprintw(2,5, "You quit the game");
|
||||
refresh();
|
||||
}
|
||||
@@ -84,7 +84,7 @@ static void display_quit(void) {
|
||||
* Clears the console and prints the hacker man message.
|
||||
*/
|
||||
static void display_hackerman(void) {
|
||||
clear();
|
||||
erase();
|
||||
mvprintw(2,5, "The hacker man strikes again...");
|
||||
refresh();
|
||||
}
|
||||
@@ -138,6 +138,8 @@ static void init_ncurses() {
|
||||
init_pair(MAGENTA, COLOR_BLACK, COLOR_MAGENTA);
|
||||
init_pair(YELLOW, COLOR_BLACK, COLOR_YELLOW);
|
||||
init_pair(RED, COLOR_BLACK, COLOR_RED);
|
||||
|
||||
clear();
|
||||
}
|
||||
|
||||
static void cleanup_ncurses() {
|
||||
|
||||
Reference in New Issue
Block a user