Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Committer:
AhmedPlaymaker
Date:
Sun May 05 17:22:48 2019 +0000
Revision:
78:10e5cc013806
Parent:
69:55e309da7efd
Child:
80:51ca38c5dcdf
Added some functions in tutorial;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AhmedPlaymaker 60:d3a9e0e4a0de 1 #include "Tutorial.h"
AhmedPlaymaker 60:d3a9e0e4a0de 2
AhmedPlaymaker 60:d3a9e0e4a0de 3 Tutorial::Tutorial()
AhmedPlaymaker 60:d3a9e0e4a0de 4 {
AhmedPlaymaker 62:ebf6ecf8a6d5 5
AhmedPlaymaker 60:d3a9e0e4a0de 6 }
AhmedPlaymaker 60:d3a9e0e4a0de 7
AhmedPlaymaker 60:d3a9e0e4a0de 8 Tutorial::~Tutorial()
AhmedPlaymaker 60:d3a9e0e4a0de 9 {
AhmedPlaymaker 62:ebf6ecf8a6d5 10
AhmedPlaymaker 60:d3a9e0e4a0de 11 }
AhmedPlaymaker 60:d3a9e0e4a0de 12
AhmedPlaymaker 60:d3a9e0e4a0de 13 int g_pad[27][44] = {
AhmedPlaymaker 60:d3a9e0e4a0de 14 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 15 {0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 16 {0,0,0,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 17 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1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AhmedPlaymaker 60:d3a9e0e4a0de 64 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 65 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 66 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 67 {0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0},
AhmedPlaymaker 60:d3a9e0e4a0de 68 {0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0},
AhmedPlaymaker 60:d3a9e0e4a0de 69 {0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 70 {0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 71 };
AhmedPlaymaker 60:d3a9e0e4a0de 72
AhmedPlaymaker 78:10e5cc013806 73 int UpDown[27][44] = {
AhmedPlaymaker 78:10e5cc013806 74 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 75 {0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 76 {0,0,0,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 77 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 78 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 79 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 80 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 81 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 82 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0},
AhmedPlaymaker 78:10e5cc013806 83 {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0},
AhmedPlaymaker 78:10e5cc013806 84 {0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0},
AhmedPlaymaker 78:10e5cc013806 85 {0,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0},
AhmedPlaymaker 78:10e5cc013806 86 {0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
AhmedPlaymaker 78:10e5cc013806 87 {0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0},
AhmedPlaymaker 78:10e5cc013806 88 {0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0},
AhmedPlaymaker 78:10e5cc013806 89 {0,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,0},
AhmedPlaymaker 78:10e5cc013806 90 {0,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,0,1,0},
AhmedPlaymaker 78:10e5cc013806 91 {1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,1},
AhmedPlaymaker 78:10e5cc013806 92 {1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,0,0,1},
AhmedPlaymaker 78:10e5cc013806 93 {1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
AhmedPlaymaker 78:10e5cc013806 94 {1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1},
AhmedPlaymaker 78:10e5cc013806 95 {1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
AhmedPlaymaker 78:10e5cc013806 96 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
AhmedPlaymaker 78:10e5cc013806 97 {0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0},
AhmedPlaymaker 78:10e5cc013806 98 {0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0},
AhmedPlaymaker 78:10e5cc013806 99 {0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0},
AhmedPlaymaker 78:10e5cc013806 100 {0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0},
AhmedPlaymaker 78:10e5cc013806 101 };
AhmedPlaymaker 78:10e5cc013806 102
AhmedPlaymaker 60:d3a9e0e4a0de 103 int LeftRight[27][44] = {
AhmedPlaymaker 60:d3a9e0e4a0de 104 {0,0,0,0,0,1,1,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 131 };
AhmedPlaymaker 60:d3a9e0e4a0de 132
AhmedPlaymaker 60:d3a9e0e4a0de 133 int GameControls[31][44] = {
AhmedPlaymaker 60:d3a9e0e4a0de 134 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 135 {0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 136 {0,0,0,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 137 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 138 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 139 {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 140 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 141 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0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ker 60:d3a9e0e4a0de 159 {0,0,1,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 160 {0,0,0,1,1,1,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 161 {0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 162 {0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 163 {0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 164 {0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 165 };
AhmedPlaymaker 60:d3a9e0e4a0de 166
AhmedPlaymaker 60:d3a9e0e4a0de 167 int NextBack[27][44] = {
AhmedPlaymaker 60:d3a9e0e4a0de 168 {0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 169 {0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0},
A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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 188 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 189 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 190 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
AhmedPlaymaker 60:d3a9e0e4a0de 191 {0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0},
AhmedPlaymaker 60:d3a9e0e4a0de 192 {0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0},
AhmedPlaymaker 60:d3a9e0e4a0de 193 {0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 194 {0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0},
AhmedPlaymaker 60:d3a9e0e4a0de 195 };
AhmedPlaymaker 60:d3a9e0e4a0de 196
AhmedPlaymaker 60:d3a9e0e4a0de 197
AhmedPlaymaker 60:d3a9e0e4a0de 198 void Tutorial::Implement(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 60:d3a9e0e4a0de 199 {
AhmedPlaymaker 61:f3c402bc2ad0 200 //pad.init();
AhmedPlaymaker 60:d3a9e0e4a0de 201 Tutorial::gamePad(lcd, pad);
AhmedPlaymaker 78:10e5cc013806 202 Tutorial::settings(lcd, pad);
AhmedPlaymaker 78:10e5cc013806 203 Tutorial::controlsToNavigateInMenu(lcd, pad);
AhmedPlaymaker 78:10e5cc013806 204 Tutorial::controlsToNavigateGameModeSpeed(lcd,pad);
AhmedPlaymaker 78:10e5cc013806 205 Tutorial::controlsToPlayGame(lcd, pad);
AhmedPlaymaker 78:10e5cc013806 206 Tutorial::controlsForPreviousOrNext(lcd, pad);
AhmedPlaymaker 60:d3a9e0e4a0de 207 }
AhmedPlaymaker 60:d3a9e0e4a0de 208
AhmedPlaymaker 60:d3a9e0e4a0de 209 void Tutorial::gamePad(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 62:ebf6ecf8a6d5 210 {
AhmedPlaymaker 78:10e5cc013806 211 lcd.clear();
AhmedPlaymaker 62:ebf6ecf8a6d5 212 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 60:d3a9e0e4a0de 213 lcd.drawSprite(20,0,27,44,(int *)g_pad); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 214 lcd.printString("Press Start or",0,4);
AhmedPlaymaker 78:10e5cc013806 215 lcd.printString("A to proceed",7,5);
AhmedPlaymaker 78:10e5cc013806 216 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 217 }
AhmedPlaymaker 78:10e5cc013806 218 wait(0.25);
AhmedPlaymaker 78:10e5cc013806 219 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 220 }
AhmedPlaymaker 78:10e5cc013806 221
AhmedPlaymaker 78:10e5cc013806 222 void Tutorial::settings(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 78:10e5cc013806 223 {
AhmedPlaymaker 78:10e5cc013806 224 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 225 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 226 lcd.drawSprite(20,0,27,44,(int *)Pot); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 227 lcd.printString("Rotate pot",12,4);
AhmedPlaymaker 78:10e5cc013806 228 lcd.printString("in settings",9,5);
AhmedPlaymaker 78:10e5cc013806 229 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 230 }
AhmedPlaymaker 78:10e5cc013806 231 wait(0.25);
AhmedPlaymaker 78:10e5cc013806 232 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 233 }
AhmedPlaymaker 78:10e5cc013806 234
AhmedPlaymaker 78:10e5cc013806 235 void Tutorial::controlsToNavigateInMenu(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 78:10e5cc013806 236 {
AhmedPlaymaker 78:10e5cc013806 237 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 238 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 239 lcd.drawSprite(20,0,27,44,(int *)UpDown); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 240 lcd.printString("Up/Down",21,4);
AhmedPlaymaker 78:10e5cc013806 241 lcd.printString("for Main Menu",3,5);
AhmedPlaymaker 78:10e5cc013806 242 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 243 }
AhmedPlaymaker 78:10e5cc013806 244 wait(0.25);
AhmedPlaymaker 78:10e5cc013806 245 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 246 }
AhmedPlaymaker 78:10e5cc013806 247
AhmedPlaymaker 78:10e5cc013806 248 void Tutorial::controlsToNavigateGameModeSpeed(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 78:10e5cc013806 249 {
AhmedPlaymaker 78:10e5cc013806 250 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 251 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 252 lcd.drawSprite(20,0,27,44,(int *)LeftRight); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 253 lcd.printString("Left/Right for",0,4);
AhmedPlaymaker 78:10e5cc013806 254 lcd.printString("Mode & Speed",7,5);
AhmedPlaymaker 60:d3a9e0e4a0de 255 lcd.refresh();
AhmedPlaymaker 60:d3a9e0e4a0de 256 }
AhmedPlaymaker 78:10e5cc013806 257 wait(0.3);
AhmedPlaymaker 78:10e5cc013806 258 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 259 }
AhmedPlaymaker 78:10e5cc013806 260
AhmedPlaymaker 78:10e5cc013806 261 void Tutorial::controlsToPlayGame(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 78:10e5cc013806 262 {
AhmedPlaymaker 78:10e5cc013806 263 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 264 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 265 lcd.drawSprite(20,0,31,44,(int *)GameControls); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 266 lcd.printString("InGameControls",0,4);
AhmedPlaymaker 78:10e5cc013806 267 lcd.printString("to moove snake",0,5);
AhmedPlaymaker 78:10e5cc013806 268 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 269 }
AhmedPlaymaker 78:10e5cc013806 270 wait(0.25);
AhmedPlaymaker 78:10e5cc013806 271 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 272
AhmedPlaymaker 78:10e5cc013806 273 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 274 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 275 lcd.drawSprite(20,0,31,44,(int *)GameControls); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 276 lcd.printString("Depends on",12,4);
AhmedPlaymaker 78:10e5cc013806 277 lcd.printString("mode selection",0,5);
AhmedPlaymaker 78:10e5cc013806 278 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 279 }
AhmedPlaymaker 78:10e5cc013806 280 wait(0.25);
AhmedPlaymaker 78:10e5cc013806 281 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 282 }
AhmedPlaymaker 78:10e5cc013806 283
AhmedPlaymaker 78:10e5cc013806 284 void Tutorial::controlsForPreviousOrNext(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 78:10e5cc013806 285 {
AhmedPlaymaker 78:10e5cc013806 286 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 287 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 288 lcd.drawSprite(20,0,27,44,(int *)NextBack); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 289 lcd.printString("Previous/Next",4,4);
AhmedPlaymaker 78:10e5cc013806 290 lcd.printString("End/Start",16,5);
AhmedPlaymaker 78:10e5cc013806 291 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 292 }
AhmedPlaymaker 78:10e5cc013806 293 wait(0.3);
AhmedPlaymaker 78:10e5cc013806 294 pad.tone(1000.0,0.1);
AhmedPlaymaker 78:10e5cc013806 295
AhmedPlaymaker 78:10e5cc013806 296 lcd.clear();
AhmedPlaymaker 78:10e5cc013806 297 while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed.
AhmedPlaymaker 78:10e5cc013806 298 lcd.drawSprite(20,0,27,44,(int *)NextBack); //Function used to draw the sprite.
AhmedPlaymaker 78:10e5cc013806 299 lcd.printString("Works in both",5,4);
AhmedPlaymaker 78:10e5cc013806 300 lcd.printString("menu and game",5,5);
AhmedPlaymaker 78:10e5cc013806 301 lcd.refresh();
AhmedPlaymaker 78:10e5cc013806 302 }
AhmedPlaymaker 78:10e5cc013806 303 wait(0.3);
AhmedPlaymaker 78:10e5cc013806 304 pad.tone(1000.0,0.1);
AhmedPlaymaker 60:d3a9e0e4a0de 305 }