Yiu Fai Kwok / Mbed 2 deprecated el17yfk

Dependencies:   mbed FXOS8700CQ mbed-rtos

Revision:
14:abe64fe0b6a5
Parent:
12:71683453f66a
Child:
22:f8f36e88b2ca
--- a/Characters/Charmander.cpp	Wed Apr 17 17:53:56 2019 +0000
+++ b/Characters/Charmander.cpp	Thu Apr 18 04:53:04 2019 +0000
@@ -43,6 +43,162 @@
     lcd.drawSprite(_pos_x, _pos_y, 18, 21, (int *)charmander_data);
 }
 
+void Charmander::draw_cha1_alt_sprite(int pos_x, int pos_y,N5110 &lcd)
+{
+    int Charmander_alt_data[18][21] = {
+        {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,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0},
+        {0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0},
+        {0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0},
+        {0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,1},
+        {0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,1},
+        {1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,1,1,1,1,0},
+        {1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,1,1,0,0,0},
+        {0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0},
+        {0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0},
+        {0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0},
+        {0,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0},
+        {0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0},
+        {0,0,0,0,0,1,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0},
+        {0,0,0,0,1,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0},
+        {0,0,0,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,0,0,0},
+        {0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0},
+        {0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0},
+    };
+    
+    _pos_x = pos_x;
+    _pos_y = pos_y;
+    lcd.drawSprite(_pos_x, _pos_y, 18, 21, (int *)Charmander_alt_data);
+}
+
+void Charmander::draw_cha2_sprite(int pos_x, int pos_y, N5110 &lcd)
+{
+    int Charmander_2_data[22][22] = {
+        {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,0,0,0,1,1,0,0,0,0,1,0,1,0,0,0,0,0},
+        {0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,0},
+        {0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0},
+        {0,0,0,0,1,1,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0},
+        {0,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0},
+        {0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0},
+        {0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0},
+        {0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0},
+        {1,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1},
+        {1,0,0,0,0,1,1,0,1,0,0,0,0,1,1,0,0,1,0,0,0,1},
+        {0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,1},
+        {0,0,1,1,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,1,1},
+        {0,1,0,0,1,1,1,1,0,0,0,0,1,0,1,0,0,0,0,0,1,0},
+        {1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0},
+        {1,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,1,1,0,0,0},
+        {0,1,1,0,0,0,0,1,1,0,1,0,0,1,0,0,0,1,0,0,0,0},
+        {0,0,0,0,0,0,1,0,0,1,0,1,1,0,0,0,1,1,0,0,0,0},
+        {0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,1,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,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,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,0},
+    };
+    
+    _pos_x = pos_x;
+    _pos_y = pos_y;
+    lcd.drawSprite(_pos_x, _pos_y, 22, 22, (int *)Charmander_2_data);
+}
+
+void Charmander::draw_cha2_alt_sprite(int pos_x, int pos_y,N5110 &lcd)
+{
+    int Charmander_a2_data[22][22] = {
+        {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,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0},
+        {0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,0,0,0},
+        {0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0},
+        {0,0,0,0,1,1,1,0,0,1,0,0,1,0,0,0,1,0,0,0,0,0},
+        {0,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,0,0,0},
+        {0,0,1,0,0,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0},
+        {0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0},
+        {0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0},
+        {1,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,0},
+        {1,0,0,0,0,1,1,0,1,0,0,0,0,1,1,0,0,1,0,0,1,0},
+        {0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,1,0},
+        {0,0,1,1,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,1,0},
+        {0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,0,0,0,1,0},
+        {0,1,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0},
+        {0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,0},
+        {0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0},
+        {0,0,0,0,0,0,0,1,0,1,0,1,1,1,0,0,1,1,0,0,0,0},
+        {0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,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},
+        {0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,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,0,0},
+    };
+    
+    _pos_x = pos_x;
+    _pos_y = pos_y;
+    lcd.drawSprite(_pos_x, _pos_y, 22, 22, (int *)Charmander_a2_data);
+}
+
+void Charmander::draw_cha3_sprite(int pos_x, int pos_y,N5110 &lcd)
+{
+    int Charmander_3_data[22][30] = {
+        {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,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,1,0,0,0},
+        {0,0,0,0,0,0,1,1,0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0},
+        {0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,0,0},
+        {0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,1,0,0,0,1,1,0,0,1,0,0,1,0},
+        {0,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,0,1,0,1,1,0,0,1,1,0,1,0,1,0},
+        {0,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,1,1,1,1,0,0,1,1,0,0,1},
+        {0,0,0,1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,1,1,1,1,1,1,1,0,0,1,0,1},
+        {0,0,0,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,1,0,1,1},
+        {0,0,1,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,0,1},
+        {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1},
+        {0,0,1,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,0,1},
+        {0,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,1,0,1,0,1,0,0,0,1,0,0,1,0},
+        {1,0,0,0,0,1,1,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,0,1,0},
+        {1,0,0,0,0,0,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0},
+        {0,1,0,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0},
+        {0,0,1,1,1,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0},
+        {0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,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,1,1,1,1,1,1,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,1,1,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,1,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,1,1,1,1,0,0,0,0,0,0},
+    };
+    
+    _pos_x = pos_x;
+    _pos_y = pos_y;
+    lcd.drawSprite(_pos_x, _pos_y, 22, 30, (int *)Charmander_3_data);
+}
+
+void Charmander::draw_cha3_alt_sprite(int pos_x, int pos_y,N5110 &lcd)
+{
+    int Charmander_a3_data[22][30] = {
+        {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,0},
+        {0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,0,1,0,0,0},
+        {0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,1,1,0,0,0},
+        {0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,1,1,0,1,1,1,1,1,1,1,0,1,0,0},
+        {0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,1,0,1,1,1,1,1,1,0,0,0,1,0},
+        {0,0,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,1,1,1,1,1,0,1,0,1,0},
+        {0,0,0,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,1,1,0,1,1,0,1,0,1},
+        {0,0,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,1,0,0,0,0,0,0,0,1,1},
+        {0,0,0,1,0,1,1,1,1,0,0,1,1,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,1,1},
+        {0,0,0,1,0,0,0,1,0,0,1,0,0,1,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,1},
+        {0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1},
+        {0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,0,0,1},
+        {0,0,1,0,0,0,0,1,0,0,1,0,1,0,0,0,0,1,0,1,0,1,0,0,0,1,0,0,1,0},
+        {0,1,0,0,0,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,0,1,0},
+        {1,0,0,0,0,1,1,0,0,1,0,0,1,0,1,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0},
+        {1,0,0,0,0,0,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0},
+        {0,1,0,0,0,1,1,0,0,0,0,0,0,1,0,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0},
+        {0,0,1,1,1,0,0,0,0,0,0,0,1,0,1,1,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,1,1,1,1,1,1,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,1,1,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,1,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,1,1,1,1,0,0,0,0,0,0},
+    };
+    
+    _pos_x = pos_x;
+    _pos_y = pos_y;
+    lcd.drawSprite(_pos_x, _pos_y, 22, 30, (int *)Charmander_a3_data);
+}
+
 void Charmander::evo_1_sprite(N5110 &lcd)
 {
     int data[41][38] = {