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: Characters/Bulbasaur.cpp
- Revision:
- 10:adff3c804985
- Parent:
- 2:464c7e62d97d
- Child:
- 11:5a6b9dffd78a
diff -r 1395c98b58fc -r adff3c804985 Characters/Bulbasaur.cpp --- a/Characters/Bulbasaur.cpp Thu Apr 11 16:17:38 2019 +0000 +++ b/Characters/Bulbasaur.cpp Fri Apr 12 17:19:14 2019 +0000 @@ -42,6 +42,51 @@ lcd.drawSprite(_pos_x, _pos_y, 17, 20, bulbasaur_data); } +void Bulbasaur::evo_one(N5110 &lcd) +{ + int evo_1_sprite_data[38][41] = { + {0,0,0,0,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,0,0,0,0}, + {0,0,0,0,0,0,0,1,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,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,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,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,1,0,0,0,0,0,0,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,1,0,0,0,0,0,0,1,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,1,1,0,0,0,0,0,0,0,0,1,1,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,1,0,1,0,0,0,0,0,0,1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