ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Models/models.h

Committer:
Noximilien
Date:
2019-03-27
Revision:
21:0eb394495b8a
Parent:
19:b78fa41d04a9
Child:
23:240bc00ef25b

File content as of revision 21:0eb394495b8a:

#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[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];
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 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