Declaration of the graphical engine functions, defines and globals.
More...
#include <curses.h>
Go to the source code of this file.
|
#define | OS_IS_WINDOWS ((defined __WIN32__) && (!defined __CYGWIN__)) |
| Let's use the game engine, depending on the OS.
|
|
Declaration of the graphical engine functions, defines and globals.
Definition in file engine.h.
Starts the game engine.
Initializes all the stuff related to ncurses.
- Note
- If some engine-specific initialization fails, the game aborts.
- Todo:
- There must have a game init function or something where i could put this
Definition at line 205 of file engine.c.
void engine_show_game_over |
( |
| ) |
|
Draws the Game Over screen.
Besides drawing 'Game Over', it highlights where the player died.
Definition at line 258 of file engine.c.
void engine_show_main_menu |
( |
| ) |
|
Displays the main menu and gets the user input from it.
This function blocks the game execution and waits for user input, refreshing the main menu screen according to the options selected.
Definition at line 306 of file engine.c.
void engine_show_screen |
( |
| ) |
|
Completely draws the screen during game.
The usleep() function interrupts the program for 'n' microseconds. It was difficult to get a stable value for the game progression.
- Note
- This is the main function of this file because it shows logically how the process of drawing the screen sould be
Definition at line 438 of file engine.c.