wordshooter.cpp
void PrintableKeys(unsigned char key, int x, int y) {
	if (key == KEY_ESC/* Escape key ASCII*/) {
		exit(1); // exit the program when escape key is pressed.
	}
}
/*This function is called (automatically) whenever any printable key (such as x,b, enter, etc.)
* is pressed from the keyboard
* This function has three argument variable key contains the ASCII of the key pressed, while x and y tells the
* program coordinates of mouse pointer when key was pressed.
* */
This function is called (automatically) whenever any printable key (such as x,b, enter, etc.)
is pressed from the keyboard
This function has three argument variable key contains the ASCII of the key pressed, while x and y tells the
program coordinates of mouse pointer when key was pressed.
This function is called ( automatically ) whenever any printable key ( such as x b enter etc . ) is pressed from the keyboard This function has three argument variable key contains the ASCII of the key pressed while x and y tells the program coordinates of mouse pointer when key was pressed .
void PrintableKeys(unsigned char key, int x, int y) {
	if (key == KEY_ESC) {
		exit(1); 
	}
}
void PrintableKeys ( unsigned char key , int x , int y ) { if ( key == KEY_ESC ) { exit ( 1 ) ; } }
This function is called (automatically) whenever any printable key (such as x,b, enter, etc.)
This function is called ( automatically ) whenever any printable key ( such as x b enter etc . )
/* Escape key ASCII*/ // exit the program when escape key is pressed.