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
Fork of el17dg by
Diff: Models/models.h
- Revision:
- 9:5ad5501c702e
- Parent:
- 8:c18c240665aa
- Child:
- 12:bfe3a3deaac3
diff -r c18c240665aa -r 5ad5501c702e Models/models.h --- a/Models/models.h Mon Mar 11 14:48:49 2019 +0000 +++ b/Models/models.h Mon Mar 11 22:07:26 2019 +0000 @@ -1,86 +1,15 @@ - +#ifndef MODELS_H +#define MODELS_H //#include "main.h" - -const int spaceship1_width = 15; -const int spaceship1_height = 14; - -const int spaceShip1[210] = { - 0,0,0,0,0,0,0,0,0,1,0,0,0,0, - 0,0,0,0,0,0,0,1,1,0,0,0,0,0, - 0,0,0,0,0,0,0,1,0,1,0,0,0,0, - 0,0,0,0,1,1,1,1,0,0,0,0,0,0, - 0,0,0,0,1,0,0,1,0,0,0,0,0,0, - 0,0,1,1,1,0,0,0,1,1,1,1,0,0, - 0,0,0,1,1,0,1,0,0,1,0,0,1,0, - 1,1,1,0,1,1,0,0,0,1,1,0,0,1, - 0,0,0,1,1,0,1,0,0,1,0,0,1,0, - 0,0,1,1,1,0,0,0,1,1,1,1,0,0, - 0,0,0,0,1,0,0,1,0,0,0,0,0,0, - 0,0,0,0,1,1,1,1,0,0,0,0,0,0, - 0,0,0,0,0,0,0,1,0,1,0,0,0,0, - 0,0,0,0,0,0,0,1,1,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,1,0,0,0,0 -}; - -//void starMinor(int x, int y){ - // lcd.setPixel(x,y,true); -//} - -const int starSmall[9] = { - 0,1,0, - 1,1,1, - 0,1,0 -}; - -const int starMedium[25] = { - 1,0,0,0,1, - 0,1,1,1,0, - 0,1,1,1,0, - 0,1,1,1,0, - 1,0,0,0,1 -}; +extern const int spaceship1_width; +extern const int spaceship1_height; +extern const int spaceShip1[210]; +extern const int starSmall[9]; +extern const int starMedium[25]; +extern const int starBig[49]; +extern const int simpleLaserShotDissapear[3]; +extern const int enemyShip1 [187]; +extern const int enemyShip2 [77]; -const int starBig[49] = { - 1,0,0,1,0,0,1, - 0,1,0,1,0,1,0, - 0,0,1,1,1,0,0, - 1,1,1,1,1,1,1, - 0,0,1,1,1,0,0, - 0,1,0,1,0,1,0, - 1,0,0,1,0,0,1 -}; - -const int simpleLaserShot[3] = {1,1,1}; - -const int simpleLaserShotDissapear[3] = {0,0,0}; - -const int enemyShip1 [187] = { - 0,0,0,0,0,0,1,1,1,1,1, - 0,0,0,0,0,0,1,1,1,1,1, - 0,0,0,0,0,0,1,1,1,1,1, - 0,0,0,0,0,0,0,0,1,1,0, - 0,0,0,0,0,0,0,0,1,0,0, - 0,0,0,1,1,1,1,1,1,0,0, - 0,0,0,0,0,0,1,1,1,0,0, - 0,0,0,1,1,1,0,1,0,1,0, - 1,1,1,1,1,1,1,0,1,1,1, - 0,0,0,1,1,1,0,1,0,1,0, - 0,0,0,0,0,0,1,1,1,0,0, - 0,0,0,1,1,1,1,1,1,0,0, - 0,0,0,0,0,0,0,0,1,0,0, - 0,0,0,0,0,0,0,0,1,1,0, - 0,0,0,0,0,0,1,1,1,1,1, - 0,0,0,0,0,0,1,1,1,1,1, - 0,0,0,0,0,0,1,1,1,1,1 -}; - -const int enemyShip2 [77] = { - 0,0,0,1,1,1,1,1,1,0,0, - 0,0,0,0,0,0,1,1,1,0,0, - 0,0,0,1,1,1,0,1,0,1,0, - 1,1,1,1,1,1,1,0,1,1,1, - 0,0,0,1,1,1,0,1,0,1,0, - 0,0,0,0,0,0,1,1,1,0,0, - 0,0,0,1,1,1,1,1,1,0,0 -}; +#endif \ No newline at end of file