![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/StartScreen/StartScreen.h
- Revision:
- 84:9950d561fdf8
- Parent:
- 83:329da564799a
- Child:
- 88:1e2e70a484e7
--- a/MenuClasses/StartScreen/StartScreen.h Mon May 06 14:28:35 2019 +0000 +++ b/MenuClasses/StartScreen/StartScreen.h Mon May 06 16:15:21 2019 +0000 @@ -21,6 +21,12 @@ * This function initialises the Game Interface and restarts the display. */ void init(N5110 *lcd, Gamepad *pad); + + /** Initialise objects + * + * This function initialises the objects that are used to functionalise the game. + */ + void object_initialisations(); /** Draw * @@ -53,6 +59,13 @@ */ bool checkBackPressed(); + /** Check Start/A Pressed + * + * This function makes a centralised approach to check when Start/A is pressed in a loop, so that it can be used to exit it and also go to. + * the next menu option. + */ + bool checkStartorAPressed(); + /** The Menu Screen * * This function obtains the user input on how they want to progress. @@ -106,7 +119,7 @@ * This function obtains the user input on the game speed that suits them. */ void game_speed(); - + /** Displaying GAME speed Contents * * This function just displays game_speed contents. @@ -144,7 +157,7 @@ Stats _stats; Settings _settings; Tutorial _tutorial; - + //Pointer to the game pad object pad. Gamepad *_pad; //Pointer to the N5110 object lcd.