Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Committer:
AhmedPlaymaker
Date:
Wed Mar 20 11:41:18 2019 +0000
Revision:
5:e4df87957a5b
Parent:
4:1fe015b66bb8
Child:
16:7b474f873683
Settings menu and class created, Show Credits configuration has a problem, should try to fix soon.; Tutorials Menu and volume configuration remaining, next is game architecture.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AhmedPlaymaker 3:fbb1fa853f09 1 #ifndef StartScreen_H
AhmedPlaymaker 3:fbb1fa853f09 2 #define StartScreen_H
AhmedPlaymaker 3:fbb1fa853f09 3
AhmedPlaymaker 3:fbb1fa853f09 4 #include "mbed.h"
AhmedPlaymaker 3:fbb1fa853f09 5 #include "N5110.h"
AhmedPlaymaker 3:fbb1fa853f09 6 #include "Gamepad.h"
AhmedPlaymaker 5:e4df87957a5b 7 #include "Settings.h"
AhmedPlaymaker 3:fbb1fa853f09 8
AhmedPlaymaker 3:fbb1fa853f09 9 class StartScreen
AhmedPlaymaker 3:fbb1fa853f09 10 {
AhmedPlaymaker 3:fbb1fa853f09 11 public:
AhmedPlaymaker 3:fbb1fa853f09 12
AhmedPlaymaker 3:fbb1fa853f09 13 StartScreen();
AhmedPlaymaker 3:fbb1fa853f09 14 ~StartScreen();
AhmedPlaymaker 3:fbb1fa853f09 15
AhmedPlaymaker 3:fbb1fa853f09 16 /** Initialise StartScreen
AhmedPlaymaker 3:fbb1fa853f09 17 *
AhmedPlaymaker 3:fbb1fa853f09 18 * This function initialises the Game Interface and restarts the display.
AhmedPlaymaker 3:fbb1fa853f09 19 */
AhmedPlaymaker 3:fbb1fa853f09 20 void screen_saver(N5110 &lcd, Gamepad &pad);
AhmedPlaymaker 3:fbb1fa853f09 21
AhmedPlaymaker 3:fbb1fa853f09 22 /** Draw
AhmedPlaymaker 3:fbb1fa853f09 23 *
AhmedPlaymaker 3:fbb1fa853f09 24 * This function draws the Sprite onto the screen.
AhmedPlaymaker 3:fbb1fa853f09 25 */
AhmedPlaymaker 3:fbb1fa853f09 26 void instruct(N5110 &lcd, Gamepad &pad);
AhmedPlaymaker 3:fbb1fa853f09 27
AhmedPlaymaker 3:fbb1fa853f09 28 /** Instruct
AhmedPlaymaker 3:fbb1fa853f09 29 *
AhmedPlaymaker 3:fbb1fa853f09 30 * This function updates the user about how to progress after the game banner has been displayed..
AhmedPlaymaker 3:fbb1fa853f09 31 */
AhmedPlaymaker 3:fbb1fa853f09 32 void info(N5110 &lcd, Gamepad &pad);
AhmedPlaymaker 3:fbb1fa853f09 33
AhmedPlaymaker 3:fbb1fa853f09 34 /** Display userID
AhmedPlaymaker 3:fbb1fa853f09 35 *
AhmedPlaymaker 3:fbb1fa853f09 36 * This function shows who the author of the game is before showing the menu screen.
AhmedPlaymaker 3:fbb1fa853f09 37 */
AhmedPlaymaker 3:fbb1fa853f09 38 void menu_screen1(N5110 &lcd, Gamepad &pad);
AhmedPlaymaker 3:fbb1fa853f09 39
AhmedPlaymaker 3:fbb1fa853f09 40 /** The First Menu Screen
AhmedPlaymaker 3:fbb1fa853f09 41 *
AhmedPlaymaker 3:fbb1fa853f09 42 * This function obtains the user input on how they want to progress.
AhmedPlaymaker 3:fbb1fa853f09 43 */
AhmedPlaymaker 4:1fe015b66bb8 44
AhmedPlaymaker 4:1fe015b66bb8 45 void menu_screen2(N5110 &lcd, Gamepad &pad);
AhmedPlaymaker 4:1fe015b66bb8 46
AhmedPlaymaker 4:1fe015b66bb8 47 /** The Second Menu Screen
AhmedPlaymaker 4:1fe015b66bb8 48 *
AhmedPlaymaker 4:1fe015b66bb8 49 * This function obtains the user input on the game type they would like to play.
AhmedPlaymaker 4:1fe015b66bb8 50 */
AhmedPlaymaker 4:1fe015b66bb8 51
AhmedPlaymaker 4:1fe015b66bb8 52 void menu_screen3(N5110 &lcd, Gamepad &pad);
AhmedPlaymaker 4:1fe015b66bb8 53
AhmedPlaymaker 4:1fe015b66bb8 54 /** The Third Menu Screen
AhmedPlaymaker 4:1fe015b66bb8 55 *
AhmedPlaymaker 4:1fe015b66bb8 56 * This function obtains the user input on the game speed that suits them.
AhmedPlaymaker 4:1fe015b66bb8 57 */
AhmedPlaymaker 3:fbb1fa853f09 58
AhmedPlaymaker 3:fbb1fa853f09 59
AhmedPlaymaker 3:fbb1fa853f09 60
AhmedPlaymaker 3:fbb1fa853f09 61 };
AhmedPlaymaker 3:fbb1fa853f09 62 #endif