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: Score/Score.cpp
- Revision:
- 10:adff3c804985
- Parent:
- 5:bc0691d02fd5
- Child:
- 12:71683453f66a
--- a/Score/Score.cpp Thu Apr 11 16:17:38 2019 +0000 +++ b/Score/Score.cpp Fri Apr 12 17:19:14 2019 +0000 @@ -478,7 +478,9 @@ { lcd.clear(); if(year == 1 && cha == 1) {_s1.evo_1_sprite(lcd);} - else if (year == 2 && cha == 1) {_s1.evo_2_sprite(lcd);} + else if(year == 1 && cha == 2) {_c1.evo_1_sprite(lcd);} + else if(year == 2 && cha == 1) {_s1.evo_2_sprite(lcd);} + else if(year == 2 && cha == 2) {_c1.evo_2_sprite(lcd);} lcd.refresh(); } @@ -486,8 +488,11 @@ { lcd.clear(); if(year == 0 && cha == 1) {_s1.evo_1_cong(lcd);} + else if(year == 0 && cha == 2) {_c1.evo_1_cong(lcd);} else if(year == 1 && cha == 1) {_s1.evo_2_cong(lcd);} + else if(year == 1 && cha == 2) {_c1.evo_2_cong(lcd);} else if (year == 2 && cha == 1) {_s1.evo_3_cong(lcd);} + else if (year == 2 && cha == 2) {_c1.evo_3_cong(lcd);} lcd.refresh(); }