Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Committer:
AhmedPlaymaker
Date:
Sun Apr 14 10:24:59 2019 +0000
Revision:
29:c6358c39a70e
Parent:
28:d2c621d67e3b
Child:
30:461231877c89
Minor performance improvements, Start screen class needs to be re organized

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AhmedPlaymaker 3:fbb1fa853f09 1 #include "StartScreen.h"
AhmedPlaymaker 5:e4df87957a5b 2 Settings settings;
AhmedPlaymaker 3:fbb1fa853f09 3
AhmedPlaymaker 3:fbb1fa853f09 4 int sprite[48][84] = {
AhmedPlaymaker 6:3ffab44ed49c 5 {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,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
AhmedPlaymaker 6:3ffab44ed49c 6 {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,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 6:3ffab44ed49c 7 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,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,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 6:3ffab44ed49c 8 {1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,1,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,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0,1,1,1,1,0,1,1,1,0,0,0,1,1,1,1,0,1,1,0,0,1,1,0,1},
AhmedPlaymaker 6:3ffab44ed49c 51 {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,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 6:3ffab44ed49c 52 {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,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
AhmedPlaymaker 3:fbb1fa853f09 53
AhmedPlaymaker 4:1fe015b66bb8 54 };
AhmedPlaymaker 3:fbb1fa853f09 55
AhmedPlaymaker 4:1fe015b66bb8 56 int arrow[7][9] = {
AhmedPlaymaker 3:fbb1fa853f09 57 {0,0,0,0,1,0,0,0,0},
AhmedPlaymaker 3:fbb1fa853f09 58 {0,0,0,1,1,0,0,0,0},
AhmedPlaymaker 3:fbb1fa853f09 59 {0,0,1,1,1,0,0,0,0},
AhmedPlaymaker 3:fbb1fa853f09 60 {0,1,1,1,1,1,1,1,1},
AhmedPlaymaker 3:fbb1fa853f09 61 {0,0,1,1,1,0,0,0,0},
AhmedPlaymaker 3:fbb1fa853f09 62 {0,0,0,1,1,0,0,0,0},
AhmedPlaymaker 3:fbb1fa853f09 63 {0,0,0,0,1,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 64 };
AhmedPlaymaker 4:1fe015b66bb8 65
AhmedPlaymaker 4:1fe015b66bb8 66 int bullet[13][5] = {
AhmedPlaymaker 4:1fe015b66bb8 67 {1,0,0,0,1},
AhmedPlaymaker 4:1fe015b66bb8 68 {1,0,0,0,1},
AhmedPlaymaker 4:1fe015b66bb8 69 {0,1,0,1,0},
AhmedPlaymaker 4:1fe015b66bb8 70 {0,0,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 71 {0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 72 {0,0,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 73 {0,0,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 74 {0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 75 {0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 76 {0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 77 {0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 78 {0,0,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 79 {0,0,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 80 };
AhmedPlaymaker 4:1fe015b66bb8 81 int navL[13][8] = {
AhmedPlaymaker 4:1fe015b66bb8 82 {0,0,0,0,0,0,1,1},
AhmedPlaymaker 4:1fe015b66bb8 83 {0,0,0,0,0,1,1,0},
AhmedPlaymaker 4:1fe015b66bb8 84 {0,0,0,0,1,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 85 {0,0,0,1,1,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 86 {0,0,1,1,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 87 {0,1,1,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 88 {1,1,0,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 89 {0,1,1,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 90 {0,0,1,1,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 91 {0,0,0,1,1,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 92 {0,0,0,0,1,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 93 {0,0,0,0,0,1,1,0},
AhmedPlaymaker 4:1fe015b66bb8 94 {0,0,0,0,0,0,1,1},
AhmedPlaymaker 4:1fe015b66bb8 95 };
AhmedPlaymaker 3:fbb1fa853f09 96
AhmedPlaymaker 4:1fe015b66bb8 97 int navR[13][8] = {
AhmedPlaymaker 4:1fe015b66bb8 98 {1,1,0,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 99 {0,1,1,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 100 {0,0,1,1,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 101 {0,0,0,1,1,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 102 {0,0,0,0,1,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 103 {0,0,0,0,0,1,1,0},
AhmedPlaymaker 4:1fe015b66bb8 104 {0,0,0,0,0,0,1,1},
AhmedPlaymaker 4:1fe015b66bb8 105 {0,0,0,0,0,1,1,0},
AhmedPlaymaker 4:1fe015b66bb8 106 {0,0,0,0,1,1,0,0},
AhmedPlaymaker 4:1fe015b66bb8 107 {0,0,0,1,1,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 108 {0,0,1,1,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 109 {0,1,1,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 110 {1,1,0,0,0,0,0,0},
AhmedPlaymaker 4:1fe015b66bb8 111 };
AhmedPlaymaker 4:1fe015b66bb8 112 int i=16;
AhmedPlaymaker 4:1fe015b66bb8 113 int lr=1;
AhmedPlaymaker 4:1fe015b66bb8 114 int gs=1;
AhmedPlaymaker 5:e4df87957a5b 115 int st=1;
AhmedPlaymaker 5:e4df87957a5b 116 int sc=1;
AhmedPlaymaker 5:e4df87957a5b 117 float cs = 4;
AhmedPlaymaker 16:7b474f873683 118
AhmedPlaymaker 3:fbb1fa853f09 119 StartScreen::StartScreen()
AhmedPlaymaker 3:fbb1fa853f09 120 {
AhmedPlaymaker 3:fbb1fa853f09 121
AhmedPlaymaker 3:fbb1fa853f09 122 }
AhmedPlaymaker 3:fbb1fa853f09 123
AhmedPlaymaker 3:fbb1fa853f09 124 StartScreen::~StartScreen()
AhmedPlaymaker 3:fbb1fa853f09 125 {
AhmedPlaymaker 3:fbb1fa853f09 126
AhmedPlaymaker 3:fbb1fa853f09 127 }
AhmedPlaymaker 3:fbb1fa853f09 128
AhmedPlaymaker 3:fbb1fa853f09 129
AhmedPlaymaker 3:fbb1fa853f09 130
AhmedPlaymaker 3:fbb1fa853f09 131 void StartScreen::screen_saver(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 3:fbb1fa853f09 132 {
AhmedPlaymaker 28:d2c621d67e3b 133 //this saves the Theme song I want to play at the start.
AhmedPlaymaker 26:3495f7b0ede7 134 int song[18] = {441,494,439,372,392,370,330,246,329,331,370,555,555,495,440,392,392,370};
AhmedPlaymaker 6:3ffab44ed49c 135 pad.leds_on();
AhmedPlaymaker 26:3495f7b0ede7 136
AhmedPlaymaker 28:d2c621d67e3b 137 for(int ani = -51; ani <= 0; ani+=3) {
AhmedPlaymaker 26:3495f7b0ede7 138 lcd.clear();
AhmedPlaymaker 26:3495f7b0ede7 139 lcd.drawSprite(0,ani,48,84,(int *)sprite); //Function used to draw the sprite
AhmedPlaymaker 26:3495f7b0ede7 140 lcd.refresh();
AhmedPlaymaker 26:3495f7b0ede7 141 pad.tone(song[(ani+48)/3],0.1);
AhmedPlaymaker 26:3495f7b0ede7 142 wait(0.2);
AhmedPlaymaker 26:3495f7b0ede7 143 }
AhmedPlaymaker 26:3495f7b0ede7 144
AhmedPlaymaker 16:7b474f873683 145 wait(0.3);
AhmedPlaymaker 3:fbb1fa853f09 146 pad.leds_off();
AhmedPlaymaker 3:fbb1fa853f09 147 lcd.clear();
AhmedPlaymaker 3:fbb1fa853f09 148 }
AhmedPlaymaker 3:fbb1fa853f09 149
AhmedPlaymaker 3:fbb1fa853f09 150 void StartScreen::instruct(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 3:fbb1fa853f09 151 {
AhmedPlaymaker 15:f4d069da093d 152 wait(1/cs);
AhmedPlaymaker 3:fbb1fa853f09 153 lcd.printString("Please Press",5,1); //Function used to promt the user to start.
AhmedPlaymaker 3:fbb1fa853f09 154 lcd.printString("Start",25,3);
AhmedPlaymaker 3:fbb1fa853f09 155 lcd.printString("to Begin",15,5);
AhmedPlaymaker 3:fbb1fa853f09 156 lcd.refresh();
AhmedPlaymaker 16:7b474f873683 157 wait(1/cs);
AhmedPlaymaker 3:fbb1fa853f09 158 while ( pad.check_event(Gamepad::START_PRESSED) == false) {
AhmedPlaymaker 3:fbb1fa853f09 159 pad.leds_on();
AhmedPlaymaker 3:fbb1fa853f09 160 wait(0.1);
AhmedPlaymaker 3:fbb1fa853f09 161 pad.leds_off();
AhmedPlaymaker 3:fbb1fa853f09 162 wait(0.1);
AhmedPlaymaker 3:fbb1fa853f09 163 }
AhmedPlaymaker 6:3ffab44ed49c 164 pad.tone(1000.0,0.1);
AhmedPlaymaker 3:fbb1fa853f09 165 lcd.clear();
AhmedPlaymaker 3:fbb1fa853f09 166 pad.leds_off();
AhmedPlaymaker 3:fbb1fa853f09 167 }
AhmedPlaymaker 3:fbb1fa853f09 168
AhmedPlaymaker 3:fbb1fa853f09 169 void StartScreen::info(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 3:fbb1fa853f09 170 {
AhmedPlaymaker 5:e4df87957a5b 171 if(sc ==1) {
AhmedPlaymaker 5:e4df87957a5b 172 lcd.printString("Created BY",8,1);
AhmedPlaymaker 5:e4df87957a5b 173 lcd.printString("Ahmed",24,3);
AhmedPlaymaker 5:e4df87957a5b 174 lcd.printString("Adamjee",20,4);
AhmedPlaymaker 5:e4df87957a5b 175 lcd.printString("201161436",15,5);
AhmedPlaymaker 5:e4df87957a5b 176 lcd.refresh();
AhmedPlaymaker 5:e4df87957a5b 177 wait(2);
AhmedPlaymaker 5:e4df87957a5b 178 }
AhmedPlaymaker 3:fbb1fa853f09 179 lcd.clear();
AhmedPlaymaker 3:fbb1fa853f09 180 }
AhmedPlaymaker 3:fbb1fa853f09 181
AhmedPlaymaker 3:fbb1fa853f09 182 void StartScreen::menu_screen1(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 3:fbb1fa853f09 183 {
AhmedPlaymaker 7:48ba87cd79b5 184 lcd.clear();
AhmedPlaymaker 15:f4d069da093d 185 wait(1/cs);
AhmedPlaymaker 29:c6358c39a70e 186 while ((pad.check_event(Gamepad::A_PRESSED) == false)&&(pad.check_event(Gamepad::START_PRESSED) == false)) { //Change this to if button pressed.
AhmedPlaymaker 3:fbb1fa853f09 187 lcd.printString("SnakeVSBlock",5,0);
AhmedPlaymaker 3:fbb1fa853f09 188 lcd.printString("Play",0,2);
AhmedPlaymaker 3:fbb1fa853f09 189 lcd.printString("Settings",0,3);
AhmedPlaymaker 3:fbb1fa853f09 190 lcd.printString("Stats",0,4);
AhmedPlaymaker 3:fbb1fa853f09 191 lcd.printString("Tutorial",0,5);
AhmedPlaymaker 3:fbb1fa853f09 192 Direction d = pad.get_direction();
AhmedPlaymaker 3:fbb1fa853f09 193 if((d==N)&&(i>16)) {
AhmedPlaymaker 3:fbb1fa853f09 194 i=i-8;
AhmedPlaymaker 3:fbb1fa853f09 195 }
AhmedPlaymaker 3:fbb1fa853f09 196 if((d==S)&&(i<40)) {
AhmedPlaymaker 3:fbb1fa853f09 197 i=i+8;
AhmedPlaymaker 3:fbb1fa853f09 198 }
AhmedPlaymaker 3:fbb1fa853f09 199 lcd.drawSprite(50,i,7,9,(int *)arrow); //Function used to draw the sprite.
AhmedPlaymaker 3:fbb1fa853f09 200 lcd.refresh();
AhmedPlaymaker 5:e4df87957a5b 201 wait(1/cs);
AhmedPlaymaker 3:fbb1fa853f09 202 lcd.clear();
AhmedPlaymaker 3:fbb1fa853f09 203 }
AhmedPlaymaker 6:3ffab44ed49c 204 pad.tone(1000.0,0.1);
AhmedPlaymaker 4:1fe015b66bb8 205 if(i == 16)
AhmedPlaymaker 4:1fe015b66bb8 206 {
AhmedPlaymaker 4:1fe015b66bb8 207 menu_screen2(lcd, pad);
AhmedPlaymaker 4:1fe015b66bb8 208 }
AhmedPlaymaker 5:e4df87957a5b 209 else if(i == 24)
AhmedPlaymaker 5:e4df87957a5b 210 {
AhmedPlaymaker 5:e4df87957a5b 211 settings.info(lcd, pad);
AhmedPlaymaker 29:c6358c39a70e 212 while (pad.check_event(Gamepad::BACK_PRESSED) == false) { //if button pressed.
AhmedPlaymaker 29:c6358c39a70e 213 Direction d = pad.get_direction();
AhmedPlaymaker 29:c6358c39a70e 214 wait(1/cs);
AhmedPlaymaker 29:c6358c39a70e 215 lcd.clear();
AhmedPlaymaker 29:c6358c39a70e 216
AhmedPlaymaker 29:c6358c39a70e 217 if((d==E)&&(st==5)) {
AhmedPlaymaker 29:c6358c39a70e 218 st=1;
AhmedPlaymaker 29:c6358c39a70e 219 }
AhmedPlaymaker 29:c6358c39a70e 220 else if((d==W)&&(st==1)) {
AhmedPlaymaker 29:c6358c39a70e 221 st=5;
AhmedPlaymaker 29:c6358c39a70e 222 }
AhmedPlaymaker 29:c6358c39a70e 223 else if((d==E)&&(1<=st<=4)) {
AhmedPlaymaker 29:c6358c39a70e 224 st=st+1;
AhmedPlaymaker 29:c6358c39a70e 225 }
AhmedPlaymaker 29:c6358c39a70e 226 else if((d==W)&&(2<=st<=5)) {
AhmedPlaymaker 29:c6358c39a70e 227 st=st-1;
AhmedPlaymaker 29:c6358c39a70e 228 }
AhmedPlaymaker 29:c6358c39a70e 229
AhmedPlaymaker 29:c6358c39a70e 230 lcd.drawSprite(5,22,13,8,(int *)navL); //Function used to draw the sprite.
AhmedPlaymaker 29:c6358c39a70e 231 lcd.drawSprite(71,22,13,8,(int *)navR); //Function used to draw the sprite.
AhmedPlaymaker 29:c6358c39a70e 232 if(st==1) {
AhmedPlaymaker 29:c6358c39a70e 233 cs = settings.controlSensitivity(lcd, pad);
AhmedPlaymaker 29:c6358c39a70e 234 }
AhmedPlaymaker 29:c6358c39a70e 235 if(st==2) {
AhmedPlaymaker 29:c6358c39a70e 236 settings.brigntness(lcd, pad);
AhmedPlaymaker 29:c6358c39a70e 237 }
AhmedPlaymaker 29:c6358c39a70e 238 if(st==3) {
AhmedPlaymaker 29:c6358c39a70e 239 settings.contrast(lcd, pad);
AhmedPlaymaker 29:c6358c39a70e 240 }
AhmedPlaymaker 29:c6358c39a70e 241 if(st==4) {
AhmedPlaymaker 29:c6358c39a70e 242 settings.volume(lcd, pad);
AhmedPlaymaker 29:c6358c39a70e 243 }
AhmedPlaymaker 29:c6358c39a70e 244 if(st==5) {
AhmedPlaymaker 29:c6358c39a70e 245 sc = settings.showCredits(lcd, pad);
AhmedPlaymaker 29:c6358c39a70e 246 }
AhmedPlaymaker 29:c6358c39a70e 247 lcd.refresh();
AhmedPlaymaker 5:e4df87957a5b 248 }
AhmedPlaymaker 9:d1d79d4ee673 249 pad.tone(1000.0,0.1);
AhmedPlaymaker 5:e4df87957a5b 250 menu_screen1(lcd, pad);
AhmedPlaymaker 5:e4df87957a5b 251 }
AhmedPlaymaker 4:1fe015b66bb8 252 else
AhmedPlaymaker 4:1fe015b66bb8 253 {
AhmedPlaymaker 4:1fe015b66bb8 254 menu_screen1(lcd, pad);
AhmedPlaymaker 4:1fe015b66bb8 255 lr=1;
AhmedPlaymaker 4:1fe015b66bb8 256 }
AhmedPlaymaker 5:e4df87957a5b 257
AhmedPlaymaker 3:fbb1fa853f09 258 }
AhmedPlaymaker 4:1fe015b66bb8 259 void StartScreen::menu_screen2(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 4:1fe015b66bb8 260 {
AhmedPlaymaker 4:1fe015b66bb8 261 lcd.clear();
AhmedPlaymaker 16:7b474f873683 262 wait(2/cs);
AhmedPlaymaker 29:c6358c39a70e 263 while ((pad.check_event(Gamepad::A_PRESSED) == false)&&(pad.check_event(Gamepad::START_PRESSED) == false)) { //Change this to if button pressed.
AhmedPlaymaker 29:c6358c39a70e 264
AhmedPlaymaker 4:1fe015b66bb8 265 Direction d = pad.get_direction();
AhmedPlaymaker 29:c6358c39a70e 266 wait(1/cs);
AhmedPlaymaker 4:1fe015b66bb8 267 if(((d==E)||(d==W))&&(lr==1)) {
AhmedPlaymaker 4:1fe015b66bb8 268 lr=2;
AhmedPlaymaker 4:1fe015b66bb8 269 }
AhmedPlaymaker 4:1fe015b66bb8 270
AhmedPlaymaker 4:1fe015b66bb8 271 else if(((d==E)||(d==W))&&(lr==2)) {
AhmedPlaymaker 4:1fe015b66bb8 272 lr=1;
AhmedPlaymaker 4:1fe015b66bb8 273 }
AhmedPlaymaker 29:c6358c39a70e 274 lcd.clear();
AhmedPlaymaker 29:c6358c39a70e 275 lcd.drawRect(27,18,30,20,FILL_TRANSPARENT);
AhmedPlaymaker 29:c6358c39a70e 276 lcd.drawSprite(10,22,13,8,(int *)navL); //Function used to draw the sprite.
AhmedPlaymaker 29:c6358c39a70e 277 lcd.drawSprite(65,22,13,8,(int *)navR); //Function used to draw the sprite.
AhmedPlaymaker 4:1fe015b66bb8 278 if(lr==1) {
AhmedPlaymaker 4:1fe015b66bb8 279 lcd.printString("Free Wave",14,1);
AhmedPlaymaker 4:1fe015b66bb8 280 lcd.refresh();
AhmedPlaymaker 4:1fe015b66bb8 281 }
AhmedPlaymaker 4:1fe015b66bb8 282 if(lr==2) {
AhmedPlaymaker 4:1fe015b66bb8 283 lcd.printString("Bullet Shower",4,1);
AhmedPlaymaker 4:1fe015b66bb8 284 lcd.drawSprite(29,19,13,5,(int *)bullet); //Function used to draw the sprite.
AhmedPlaymaker 4:1fe015b66bb8 285 }
AhmedPlaymaker 29:c6358c39a70e 286 if (pad.check_event(Gamepad::BACK_PRESSED) == true) {
AhmedPlaymaker 9:d1d79d4ee673 287 pad.tone(1000.0,0.1);
AhmedPlaymaker 4:1fe015b66bb8 288 menu_screen1(lcd, pad);
AhmedPlaymaker 26:3495f7b0ede7 289 }
AhmedPlaymaker 26:3495f7b0ede7 290 lcd.refresh();
AhmedPlaymaker 4:1fe015b66bb8 291 }
AhmedPlaymaker 6:3ffab44ed49c 292 pad.tone(1000.0,0.1);
AhmedPlaymaker 4:1fe015b66bb8 293 lcd.clear();
AhmedPlaymaker 4:1fe015b66bb8 294 menu_screen3(lcd, pad);
AhmedPlaymaker 4:1fe015b66bb8 295 }
AhmedPlaymaker 4:1fe015b66bb8 296 void StartScreen::menu_screen3(N5110 &lcd, Gamepad &pad)
AhmedPlaymaker 4:1fe015b66bb8 297 {
AhmedPlaymaker 4:1fe015b66bb8 298 lcd.clear();
AhmedPlaymaker 29:c6358c39a70e 299 wait(2/cs);
AhmedPlaymaker 29:c6358c39a70e 300 while ((pad.check_event(Gamepad::A_PRESSED) == false)&&(pad.check_event(Gamepad::START_PRESSED) == false)) { //Change this to if button pressed.
AhmedPlaymaker 4:1fe015b66bb8 301
AhmedPlaymaker 4:1fe015b66bb8 302 Direction d = pad.get_direction();
AhmedPlaymaker 5:e4df87957a5b 303 wait(1/cs);
AhmedPlaymaker 4:1fe015b66bb8 304 if((d==E)&&(gs==4)) {
AhmedPlaymaker 4:1fe015b66bb8 305 gs=1;
AhmedPlaymaker 4:1fe015b66bb8 306 }
AhmedPlaymaker 4:1fe015b66bb8 307 else if((d==W)&&(gs==1)) {
AhmedPlaymaker 4:1fe015b66bb8 308 gs=4;
AhmedPlaymaker 4:1fe015b66bb8 309 }
AhmedPlaymaker 4:1fe015b66bb8 310 else if((d==E)&&(1<=gs<=3)) {
AhmedPlaymaker 4:1fe015b66bb8 311 gs=gs+1;
AhmedPlaymaker 4:1fe015b66bb8 312 }
AhmedPlaymaker 4:1fe015b66bb8 313 else if((d==W)&&(2<=gs<=4)) {
AhmedPlaymaker 4:1fe015b66bb8 314 gs=gs-1;
AhmedPlaymaker 4:1fe015b66bb8 315 }
AhmedPlaymaker 26:3495f7b0ede7 316 lcd.clear();
AhmedPlaymaker 26:3495f7b0ede7 317 lcd.drawSprite(10,22,13,8,(int *)navL); //Function used to draw the sprite.
AhmedPlaymaker 26:3495f7b0ede7 318 lcd.drawSprite(65,22,13,8,(int *)navR); //Function used to draw the sprite.
AhmedPlaymaker 26:3495f7b0ede7 319 lcd.printString("Game Speed",10,1);
AhmedPlaymaker 4:1fe015b66bb8 320 if(gs==1) {
AhmedPlaymaker 4:1fe015b66bb8 321 lcd.printString("SNAIL",26,3);
AhmedPlaymaker 29:c6358c39a70e 322 fps = 12;
AhmedPlaymaker 4:1fe015b66bb8 323 }
AhmedPlaymaker 4:1fe015b66bb8 324 if(gs==2) {
AhmedPlaymaker 4:1fe015b66bb8 325 lcd.printString("TURTLE",24,3);
AhmedPlaymaker 19:05cc9f801468 326 fps = 18;
AhmedPlaymaker 4:1fe015b66bb8 327 }
AhmedPlaymaker 4:1fe015b66bb8 328 if(gs==3) {
AhmedPlaymaker 4:1fe015b66bb8 329 lcd.printString("RABBIT",24,3);
AhmedPlaymaker 29:c6358c39a70e 330 fps = 22;
AhmedPlaymaker 4:1fe015b66bb8 331 }
AhmedPlaymaker 4:1fe015b66bb8 332 if(gs==4) {
AhmedPlaymaker 4:1fe015b66bb8 333 lcd.printString("CHEETHA",21,3);
AhmedPlaymaker 29:c6358c39a70e 334 fps = 27;
AhmedPlaymaker 4:1fe015b66bb8 335 }
AhmedPlaymaker 4:1fe015b66bb8 336
AhmedPlaymaker 4:1fe015b66bb8 337 if (pad.check_event(Gamepad::BACK_PRESSED) == true) {
AhmedPlaymaker 9:d1d79d4ee673 338 pad.tone(1000.0,0.1);
AhmedPlaymaker 4:1fe015b66bb8 339 menu_screen2(lcd, pad);
AhmedPlaymaker 4:1fe015b66bb8 340 }
AhmedPlaymaker 26:3495f7b0ede7 341 lcd.refresh();
AhmedPlaymaker 4:1fe015b66bb8 342 }
AhmedPlaymaker 4:1fe015b66bb8 343
AhmedPlaymaker 6:3ffab44ed49c 344 pad.tone(1000.0,0.1);
AhmedPlaymaker 4:1fe015b66bb8 345 lcd.clear();
AhmedPlaymaker 5:e4df87957a5b 346 wait(1/cs);
AhmedPlaymaker 26:3495f7b0ede7 347 lcd.printString("Level:",25,1); //created so that the gamer can keep track of their game. //change this to be operated remotely
AhmedPlaymaker 21:e41126528cc6 348 lcd.printString("1",40,3);
AhmedPlaymaker 21:e41126528cc6 349 lcd.refresh();
AhmedPlaymaker 21:e41126528cc6 350 wait(2);
AhmedPlaymaker 4:1fe015b66bb8 351 }