ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Models/models.h

Committer:
Noximilien
Date:
2019-04-10
Revision:
28:35af3843de8f
Parent:
27:f05f4e738ba9
Child:
29:579e00b7f118

File content as of revision 28:35af3843de8f:

#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;
extern const int spaceShip1[110];
extern const int starSmall[9];
extern const int starMedium[25];
extern const int starBig[49];
extern const int enemyShip1 [187];
extern const int enemyShip2 [77];
extern const int enemyHalfExploded [77];
extern const int enemyExploded [77];

extern const int introLineOne [893];
extern const int introLineOneStars [156];
extern const int introLineTwoShips [460];
extern const int introLineTwo [330];
extern const int introLineThree [1482];

extern const int gameOverSprite [406];
extern const int youDiedSprite [336];

extern const int tutorialArrowRight[70];
extern const int tutorialArrowLeft[70];

struct Sprite {
    Sprite(int _width, int _height, const int* _data) : width(_width), height(_height), data(_data) {}
    int width;
    int height;
    const int* data;
};

struct SpriteOnTop {
    SpriteOnTop(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;
extern const Sprite small_star_sprite;
extern const Sprite medium_star_sprite;
extern const SpriteOnTop player_spaceship1_sprite;

#endif