Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.
Dependencies: mbed FXOS8700CQ mbed-rtos
Diff: main.cpp
- Revision:
- 34:3ddfaa217eca
- Parent:
- 33:f7ec806e14b6
diff -r f7ec806e14b6 -r 3ddfaa217eca main.cpp --- a/main.cpp Wed May 08 23:57:04 2019 +0000 +++ b/main.cpp Thu May 09 00:41:05 2019 +0000 @@ -147,7 +147,7 @@ if(select == 1){ music.congrats(pad, lcd, select, year); // Display congratulation screen for choosing the starter pokemon while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); // Instruct to press A to continue + lcd.drawSprite(2,40,9,8,(int*)button_A); // Instruct to press A to continue lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -162,7 +162,7 @@ else if(select == 0){ music.congrats(pad, lcd, select, year); while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -177,7 +177,7 @@ else if(select == 2){ music.congrats(pad, lcd, select, year); while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -370,7 +370,7 @@ if(select == 1){ music.evolution_music(pad, lcd, select, year); // Play the evolution animation and music for the chosen pokemon while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -383,7 +383,7 @@ else if(select == 0){ music.evolution_music(pad, lcd, select, year); // Play the evolution animation and music for the chosen pokemon while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -396,7 +396,7 @@ else if(select == 2){ music.evolution_music(pad, lcd, select, year); // Play the evolution animation and music for the chosen pokemon while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -418,7 +418,7 @@ if(select == 1){ music.evolution_music(pad, lcd, select, year); while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -431,7 +431,7 @@ else if(select == 0){ music.evolution_music(pad, lcd, select, year); while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -444,7 +444,7 @@ else if(select == 2){ music.evolution_music(pad, lcd, select, year); while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5); @@ -462,7 +462,7 @@ grad.Grad_title(pad, lcd, select); wait(1.0); while(pad.check_event(Gamepad::A_PRESSED) == false){ - lcd.drawSprite(2,39,9,8,(int*)button_A); + lcd.drawSprite(2,40,9,8,(int*)button_A); lcd.refresh(); wait(0.3); lcd.printString(" ",0,5);