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:
- 5:2b9181bc5c89
- Parent:
- 3:10918b0f7a7d
- Child:
- 6:100b46be4bea
--- a/Models/models.h Sun Mar 03 23:36:34 2019 +0000 +++ b/Models/models.h Mon Mar 04 20:15:55 2019 +0000 @@ -4,25 +4,64 @@ #include "mbed.h" #include "N5110.h" #include "Gamepad.h" - - +#include "main.h" -int SpaceShip1[210] = {0,0,0,0,0,0,0,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,0,0,0,1,0,0,0,0,0, - 0,0,0,0,0,1,0,1,0,1,0,0,0,0,0, - 1,0,1,0,0,1,1,1,1,1,0,0,1,0,1, - 0,1,0,0,0,1,0,0,0,1,0,0,0,1,0, - 0,1,1,1,1,0,0,0,0,0,1,1,1,1,0, - 0,0,0,1,0,0,1,0,1,0,0,1,0,0,0, - 0,0,0,1,0,0,0,1,0,0,0,1,0,0,0, - 0,0,0,1,1,1,1,1,1,1,1,1,0,0,0, - 0,0,0,0,0,1,1,0,1,1,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,1,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 - }; \ No newline at end of file +int spaceship1_width = 15; +int spaceship1_height = 14; + +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); +} + +int starSmall[9] = { + 0,1,0, + 1,1,1, + 0,1,0 +}; + +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 +}; + +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 +}; + +int simpleLaserShot[3] = {1,1,1}; + + + + +