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:
- 21:0eb394495b8a
- Parent:
- 19:b78fa41d04a9
- Child:
- 23:240bc00ef25b
diff -r 557e84189a57 -r 0eb394495b8a Models/models.h --- a/Models/models.h Tue Mar 26 10:52:53 2019 +0000 +++ b/Models/models.h Wed Mar 27 00:00:32 2019 +0000 @@ -1,6 +1,5 @@ #ifndef MODELS_H #define MODELS_H -//#include "main.h" extern const int spaceship1_width; extern const int spaceship1_height; @@ -25,5 +24,15 @@ extern const int gameOver [406]; extern const int youDied [336]; +struct Sprite { + Sprite(int _width, int _height, const int* _data) : width(_width), height(_height), data(_data) {} + int width; + int height; + const int* data; +}; + +extern const Sprite enemy_sprite; +extern const Sprite enemy_half_exploded_sprite; +extern const Sprite enemy_exploded_sprite; #endif \ No newline at end of file