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
Models/models.h
- Committer:
- Noximilien
- Date:
- 2019-04-15
- Revision:
- 29:579e00b7f118
- Parent:
- 28:35af3843de8f
- Child:
- 30:d454d0cb72bc
File content as of revision 29:579e00b7f118:
#ifndef MODELS_H #define MODELS_H extern const int spaceship1_width; extern const int spaceship1_height; extern const int enemy2_height; extern const int enemy2_width; /** @brief a function to put a sprite and its data in one variable. * @details A struct that alows to create an object containing a sprite, its width and height. * It is used with another function located in main.h. */ struct Sprite { Sprite(int _width, int _height, const int* _data) : width(_width), height(_height), data(_data) {} int width; int height; const int* data; }; /** Sprite Objects to use for other files. */ // Enemy sprites. extern const Sprite enemy1_sprite; // NOT in use extern const Sprite enemy2_sprite; extern const Sprite enemy2_half_exploded_sprite; extern const Sprite enemy2_exploded_sprite; // Stars sprites. extern const Sprite small_star_sprite; extern const Sprite medium_star_sprite; extern const Sprite big_star_sprite; // NOT in use // Planet sprites. extern const Sprite planet1_sprite; // Intro sprites. extern const Sprite intro_line_one_sprite; extern const Sprite intro_line_one_stars_sprite; extern const Sprite intro_line_two_ships_sprite; extern const Sprite intro_line_two_sprite; extern const Sprite intro_line_three_sprite; // Game Over and You Died sprites. extern const Sprite game_over_sprite; extern const Sprite you_died_sprite; // Tutorial Arrows sprites. extern const Sprite tutorial_arrow_right_sprite; extern const Sprite tutorial_arrow_left_sprite; // Player sprites. extern const Sprite player_spaceship1_sprite; #endif