Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
43:233f93860d08
Parent:
42:973bb6036f81
Child:
49:441c32f6603e
diff -r 973bb6036f81 -r 233f93860d08 MenuClasses/StartScreen/StartScreen.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MenuClasses/StartScreen/StartScreen.h	Thu Apr 25 18:12:17 2019 +0000
@@ -0,0 +1,115 @@
+#ifndef StartScreen_H
+#define StartScreen_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Settings.h"
+#include "Stats.h"
+#include "SDFileSystem.h"
+
+class StartScreen
+{
+    public:
+    
+    StartScreen();
+    ~StartScreen()
+    ;
+    
+    /** Initialise StartScreen
+    *
+    *   This function initialises the Game Interface and restarts the display.
+    */
+    void init();
+    
+    /** Draw
+    *
+    *   This function draws the Sprite onto the screen.
+    */
+    void screen_saver(N5110 &lcd, Gamepad &pad);
+    
+    /** Instruct
+    *
+    *   This function updates the user about how to progress after the game banner has been displayed..
+    */
+    void instruct(N5110 &lcd, Gamepad &pad);
+    
+    /** Display userID
+    *
+    *   This function shows who the author of the game is before showing the menu screen.
+    */
+    void info(N5110 &lcd, Gamepad &pad);
+    
+    /** The First Menu Screen
+    *
+    *   This function obtains the user input on how they want to progress.
+    */
+    void main_menu(N5110 &lcd, Gamepad &pad, SDFileSystem &sd);
+    
+    /** Displaying The First Menu Screen
+    *
+    *   This function just displays Menu Screen 1 contents.
+    */
+    void DisplayMMContents(N5110 &lcd, Gamepad &pad);
+    
+    /** Implementing The First Menu Screen
+    *
+    *   This function just implements the things decided in main menu.
+    */
+    void ImplementMM(N5110 &lcd, Gamepad &pad, SDFileSystem &sd);
+
+    /** The Second Menu Screen
+    *
+    *   This function obtains the user input on the game type they would like to play.
+    */
+    void game_mode(N5110 &lcd, Gamepad &pad, SDFileSystem &sd);
+    
+    /** Implementing GM
+    *
+    *   This function just decides what has to selected in the next iteration.
+    */
+    void ImplementGM(Gamepad &pad);
+    
+    /** Displaying GAME mode Contents
+    *
+    *   This function just displays game_mode contents.
+    */
+    void DisplayGMContents(N5110 &lcd);
+    
+    /** The Third Menu Screen
+    *
+    *   This function obtains the user input on the game speed that suits them.
+    */
+    void game_speed(N5110 &lcd, Gamepad &pad, SDFileSystem &sd);
+    
+    /** Implementing GS
+    *
+    *   This function just decides what has to be done next.
+    */
+    void ImplementGS(Gamepad &pad);
+    
+    /** Displaying GAME speed Contents
+    *
+    *   This function just displays game_speed contents.
+    */
+    void DisplayGSContents(N5110 &lcd);
+    
+    
+    int fps; // this sends over the game speed
+    int i;
+    int lr;
+    int gs;
+    int g_mode; //this helps to select between joystick and motion control.
+    int st;
+    int sc;  
+    float cs;
+    int back_pressed; //remembers if back is pressed.
+    
+    private:
+    int _level;
+    Stats _stats;
+
+    
+
+};
+#endif
\ No newline at end of file