Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FXOS8700CQ mbed-rtos
Diff: Characters/Squirtle.cpp
- Revision:
- 10:adff3c804985
- Parent:
- 9:1395c98b58fc
- Child:
- 11:5a6b9dffd78a
diff -r 1395c98b58fc -r adff3c804985 Characters/Squirtle.cpp --- a/Characters/Squirtle.cpp Thu Apr 11 16:17:38 2019 +0000 +++ b/Characters/Squirtle.cpp Fri Apr 12 17:19:14 2019 +0000 @@ -17,277 +17,277 @@ void Squirtle::draw_cha1_sprite(int pos_x, int pos_y,N5110 &lcd) { - static int squirtle_data[] = { - 0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0, - 0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,1,0, - 0,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,1, - 0,1,0,0,0,0,0,0,0,1,1,1,1,0,1,0,0,0,1,0,1, - 1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,1, - 1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0, - 1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1,1,0,0, - 0,1,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0, - 0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,0,0, - 0,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,0, - 0,0,0,1,1,0,0,1,0,0,0,1,0,1,1,1,0,0,0,0,0, - 0,0,0,0,0,1,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0, - 0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0, - 0,0,0,0,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,1,0,0,0,1,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,0 + int squirtle_data[17][21] = { + {0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0}, + {0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,1,0}, + {0,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,1}, + {0,1,0,0,0,0,0,0,0,1,1,1,1,0,1,0,0,0,1,0,1}, + {1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,1}, + {1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0}, + {1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1,1,0,0}, + {0,1,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0}, + {0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,0,0}, + {0,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,0}, + {0,0,0,1,1,0,0,1,0,0,0,1,0,1,1,1,0,0,0,0,0}, + {0,0,0,0,0,1,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0}, + {0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0}, + {0,0,0,0,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,0,1,0,0,0,1,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,0}, }; _pos_x = pos_x; _pos_y = pos_y; - lcd.drawSprite(_pos_x, _pos_y, 17, 21, squirtle_data); + lcd.drawSprite(_pos_x, _pos_y, 17, 21, (int *)squirtle_data); } void Squirtle::draw_cha1_alt_sprite(int pos_x, int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1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,0,0,1,0,0,1}, + {1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0}, + {0,1,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,0}, + {0,0,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0}, + {0,0,1,1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,0,0}, + {0,0,0,1,1,0,0,1,0,0,0,1,0,1,1,1,0,0,0,0,0}, + {0,0,0,0,0,1,0,1,0,0,1,1,0,1,1,1,0,0,0,0,0}, + {0,0,0,0,0,1,1,0,1,1,0,0,1,0,1,0,0,0,0,0,0}, + {0,0,0,0,1,0,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0}, + {0,0,0,0,0,1,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,1,0,0,0,1,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,0,0}, }; _pos_x = pos_x; _pos_y = pos_y; - lcd.drawSprite(_pos_x, _pos_y, 17, 21, squirtle_alt_data); + lcd.drawSprite(_pos_x, _pos_y, 17, 21, (int *)squirtle_alt_data); } void Squirtle::draw_cha2_sprite(int pos_x, int pos_y, N5110 &lcd) { - static int squirtle_2_data[] = { - 0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, - 0,0,1,0,0,1,1,1,1,0,1,0,0,0,1,0,0,0,0,1,1,1,0, - 0,0,1,0,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,0,1,0,0,0,0,1,0,0,0,1,0,0,1,0,1, - 0,1,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,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1,1,0,1,0,0,0,1,1,0}, + {1,0,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,1,0}, + {1,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,0}, + {0,1,0,0,0,1,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0}, + {0,0,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,1,0,0}, + {0,0,1,0,1,1,1,0,1,0,0,0,0,0,1,1,1,0,1,1,0,0,0}, + {0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,1,1,1,0,0,0,0,0}, + {0,0,0,0,0,1,0,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0,0}, + {0,0,0,0,1,0,1,1,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,1,1,1,1,0,0,1,0,1,0,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,0,0,1,0,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,0,0,0,0,0,0,0,0,0}, }; _pos_x = pos_x; _pos_y = pos_y; - lcd.drawSprite(_pos_x, _pos_y, 20, 23, squirtle_2_data); + lcd.drawSprite(_pos_x, _pos_y, 20, 23, (int *)squirtle_2_data); } void Squirtle::draw_cha2_alt_sprite(int pos_x, int pos_y,N5110 &lcd) { - static int squirtle_a2_data[] = { - 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,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,1,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0, - 0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,1,1,0, - 0,1,0,0,0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,1,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1}, + {1,1,0,0,0,0,1,0,0,1,1,1,1,1,1,0,0,1,0,1,0,0,1}, + {1,0,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,1,0}, + {1,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,1,0}, + {0,1,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0}, + {0,0,1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,1,0,0}, + {0,0,0,1,1,1,1,0,0,1,1,0,0,0,1,1,1,0,1,1,0,0,0}, + {0,0,0,1,1,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0}, + {0,0,0,0,1,1,0,0,1,0,0,0,1,0,1,1,1,0,0,0,0,0,0}, + {0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,1,0,1,1,0,0,1,0,1,0,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,1,1,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,0,1,0,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,0,0,0,0,0,0,0,0,0,0}, }; _pos_x = pos_x; _pos_y = pos_y; - lcd.drawSprite(_pos_x, _pos_y, 20, 23, squirtle_a2_data); + lcd.drawSprite(_pos_x, _pos_y, 20, 23, (int *)squirtle_a2_data); } void Squirtle::draw_cha3_sprite(int pos_x, int pos_y,N5110 &lcd) { - static int squirtle_3_data[] = { - 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,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,1,1,0,0,0,0,0,0, - 0,0,0,1,1,1,1,0,1,1,1,1,1,1,1,0,0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,0,0,1,0,0,0,0,0}, + {0,0,0,1,0,1,1,1,1,1,1,1,1,1,0,1,1,0,1,0,0,0,0}, + {0,0,0,1,0,0,0,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0}, + {0,0,1,0,0,0,0,0,0,1,0,1,1,1,0,0,0,1,0,0,0,0,0}, + {0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,1,1,1,0,0,0,0}, + {0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,1,1,1,0,0,0,0}, + {1,0,0,0,0,0,1,0,0,0,0,1,0,1,1,1,0,1,1,1,1,1,1}, + {1,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,1,0,0,1}, + {1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,1,0,1,0}, + {0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,1,1,0,0}, + {0,0,1,1,0,0,0,1,1,0,1,0,0,0,0,1,0,1,1,0,0,0,0}, + {0,0,0,0,1,1,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0}, + {0,0,0,0,0,1,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,0}, + {0,0,0,0,0,1,1,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0}, + {0,0,0,0,0,0,0,0,1,1,0,1,0,1,0,0,0,0,1,0,0,0,0}, + {0,0,0,0,0,0,0,0,0,0,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,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,0,0,0,0,0,0}, }; _pos_x = pos_x; _pos_y = pos_y; - lcd.drawSprite(_pos_x, _pos_y, 21, 23, squirtle_3_data); + lcd.drawSprite(_pos_x, _pos_y, 21, 23, (int *)squirtle_3_data); } void Squirtle::draw_cha3_alt_sprite(int pos_x, int pos_y,N5110 &lcd) { - static int squirtle_a3_data[] = { - 0,0,0,0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