![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
MenuClasses/Tutorial/Tutorial.h@78:10e5cc013806, 2019-05-05 (annotated)
- Committer:
- AhmedPlaymaker
- Date:
- Sun May 05 17:22:48 2019 +0000
- Revision:
- 78:10e5cc013806
- Parent:
- 60:d3a9e0e4a0de
- Child:
- 80:51ca38c5dcdf
Added some functions in tutorial;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AhmedPlaymaker | 60:d3a9e0e4a0de | 1 | #ifndef TUTORIAL_H |
AhmedPlaymaker | 60:d3a9e0e4a0de | 2 | #define TUTORIAL_H |
AhmedPlaymaker | 60:d3a9e0e4a0de | 3 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 4 | #include "mbed.h" |
AhmedPlaymaker | 60:d3a9e0e4a0de | 5 | #include "N5110.h" |
AhmedPlaymaker | 60:d3a9e0e4a0de | 6 | #include "Gamepad.h" |
AhmedPlaymaker | 60:d3a9e0e4a0de | 7 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 8 | class Tutorial |
AhmedPlaymaker | 60:d3a9e0e4a0de | 9 | { |
AhmedPlaymaker | 60:d3a9e0e4a0de | 10 | public: |
AhmedPlaymaker | 60:d3a9e0e4a0de | 11 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 12 | Tutorial(); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 13 | ~Tutorial(); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 14 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 15 | /** Implement Tutorial |
AhmedPlaymaker | 60:d3a9e0e4a0de | 16 | * |
AhmedPlaymaker | 60:d3a9e0e4a0de | 17 | * This function is used to configure Tutorial. |
AhmedPlaymaker | 60:d3a9e0e4a0de | 18 | */ |
AhmedPlaymaker | 60:d3a9e0e4a0de | 19 | void Implement(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 20 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 21 | /** game Pad |
AhmedPlaymaker | 60:d3a9e0e4a0de | 22 | * |
AhmedPlaymaker | 60:d3a9e0e4a0de | 23 | * This function introduces the gamepad to the user. |
AhmedPlaymaker | 60:d3a9e0e4a0de | 24 | */ |
AhmedPlaymaker | 60:d3a9e0e4a0de | 25 | void gamePad(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 26 | |
AhmedPlaymaker | 78:10e5cc013806 | 27 | /** settings |
AhmedPlaymaker | 78:10e5cc013806 | 28 | * |
AhmedPlaymaker | 78:10e5cc013806 | 29 | * This function shows how to control parameters in settings. |
AhmedPlaymaker | 78:10e5cc013806 | 30 | */ |
AhmedPlaymaker | 78:10e5cc013806 | 31 | void settings(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 78:10e5cc013806 | 32 | |
AhmedPlaymaker | 78:10e5cc013806 | 33 | /** Controls To Navigate In Menu |
AhmedPlaymaker | 78:10e5cc013806 | 34 | * |
AhmedPlaymaker | 78:10e5cc013806 | 35 | * This function shows how to scroll through menu. |
AhmedPlaymaker | 78:10e5cc013806 | 36 | */ |
AhmedPlaymaker | 78:10e5cc013806 | 37 | void controlsToNavigateInMenu(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 78:10e5cc013806 | 38 | |
AhmedPlaymaker | 78:10e5cc013806 | 39 | /** Controls To Navigate through Game Mode and Game Speed. |
AhmedPlaymaker | 78:10e5cc013806 | 40 | * |
AhmedPlaymaker | 78:10e5cc013806 | 41 | * This function shows how to scroll through menu. |
AhmedPlaymaker | 78:10e5cc013806 | 42 | */ |
AhmedPlaymaker | 78:10e5cc013806 | 43 | void controlsToNavigateGameModeSpeed(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 78:10e5cc013806 | 44 | |
AhmedPlaymaker | 78:10e5cc013806 | 45 | /** Controls To Play Game. |
AhmedPlaymaker | 78:10e5cc013806 | 46 | * |
AhmedPlaymaker | 78:10e5cc013806 | 47 | * This function shows how to move the snake in the game. |
AhmedPlaymaker | 78:10e5cc013806 | 48 | */ |
AhmedPlaymaker | 78:10e5cc013806 | 49 | void controlsToPlayGame(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 78:10e5cc013806 | 50 | |
AhmedPlaymaker | 78:10e5cc013806 | 51 | /** ControlsvForvPreviousvOr Next. |
AhmedPlaymaker | 78:10e5cc013806 | 52 | * |
AhmedPlaymaker | 78:10e5cc013806 | 53 | * This function shows how to start/end the game and also go to the next/previous menu. |
AhmedPlaymaker | 78:10e5cc013806 | 54 | */ |
AhmedPlaymaker | 78:10e5cc013806 | 55 | void controlsForPreviousOrNext(N5110 &lcd, Gamepad &pad); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 56 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 57 | #endif |