ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Models/models.cpp

Committer:
Noximilien
Date:
2019-03-17
Revision:
12:bfe3a3deaac3
Parent:
11:cf2ba52e8b7e
Child:
14:e8de27c4d0d4

File content as of revision 12:bfe3a3deaac3:

#include "models.h"

const int spaceship1_width = 15;
const int spaceship1_height = 14;

const int enemy2_height = 7;
const int enemy2_width = 11;

const 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
};


const int starSmall[9] = {
    0,1,0,
    1,1,1,
    0,1,0
};

const 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
};

const 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
};



//const int simpleLaserShotDissapear[3] = {0,0,0};

const int enemyShip1 [187] = { 
    0,0,0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,0,0,1,1,0,
    0,0,0,0,0,0,0,0,1,0,0,
    0,0,0,1,1,1,1,1,1,0,0,
    0,0,0,0,0,0,1,1,1,0,0,
    0,0,0,1,1,1,0,1,0,1,0,
    1,1,1,1,1,1,1,0,1,1,1,
    0,0,0,1,1,1,0,1,0,1,0,
    0,0,0,0,0,0,1,1,1,0,0,
    0,0,0,1,1,1,1,1,1,0,0,
    0,0,0,0,0,0,0,0,1,0,0,
    0,0,0,0,0,0,0,0,1,1,0,
    0,0,0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,1,1,1,1,1,
    0,0,0,0,0,0,1,1,1,1,1
};

const int enemyShip2 [77] = {
    0,0,0,1,1,1,1,1,1,0,0,
    0,0,0,0,0,0,1,1,1,0,0,
    0,0,0,1,1,1,0,1,0,1,0,
    1,1,1,1,1,1,1,0,1,1,1,
    0,0,0,1,1,1,0,1,0,1,0,
    0,0,0,0,0,0,1,1,1,0,0,
    0,0,0,1,1,1,1,1,1,0,0    
};

const int enemyExploded [77] = {
    0,1,0,0,0,1,1,1,1,0,0,
    0,0,1,0,1,0,1,1,1,0,0,
    0,0,0,1,1,1,1,1,0,1,0,
    0,0,0,1,1,1,1,0,1,1,1,
    0,0,0,1,1,1,0,1,0,1,0,
    0,0,1,0,0,0,0,0,1,0,0,
    0,1,0,0,0,0,0,0,0,1,1    
};
/*
const int planet1 [289] = {
    0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,
    0,0,0,0,1,1,1,1,1,1,0,1,1,0,0,0,0,
    0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,
    0,0,1,0,0,0,0,1,0,1,1,0,0,0,1,0,0,
    0,1,0,0,0,0,0,0,0,0,1,1,0,1,0,1,0,
    0,1,0,0,0,1,1,1,1,1,1,0,0,1,1,1,0,
    1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,0,1,
    1,0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,1,
    1,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,1,
    1,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,1,
    1,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,
    0,1,1,0,1,1,1,1,0,0,0,0,0,1,0,1,0,
    0,1,0,0,0,1,0,0,0,0,1,1,0,0,0,1,0,
    0,0,1,0,0,0,0,0,0,0,1,1,0,0,1,0,0,
    0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,
    0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,
    0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0    
};
*/