ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Models/models.cpp

Committer:
Noximilien
Date:
2019-03-18
Revision:
15:0145c5f0bea1
Parent:
14:e8de27c4d0d4
Child:
19:b78fa41d04a9

File content as of revision 15:0145c5f0bea1:

#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 enemyHalfExploded [77] = {
    0,0,0,0,0,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,
    0,0,1,1,0,1,1,0,1,1,1,
    0,0,0,1,0,1,0,1,0,1,0,
    0,0,0,0,0,0,1,1,1,0,0,
    0,0,0,1,1,1,0,0,1,0,0
    
};

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

/*
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,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,1,1,1,1,0,0,
    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
};

const int introLineTwo [330] = {        //30 by 11
    0,0,1,1,1,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,1,1,1,1,1,1,0,0,0,0,
    0,1,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,1,1,1,1,1,1,0,0,0,0,
    0,1,0,0,0,0,0,1,1,0,0,1,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,
    0,1,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,
    0,1,0,0,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,
    0,1,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,
    1,1,0,0,0,0,0,0,1,0,0,1,0,0,1,1,0,1,0,0,1,1,1,1,0,0,0,0,0,0,
    1,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,
    1,1,1,0,0,0,0,1,1,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,1,1,0,0,1,1,
    0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,1,0,0,1,1,1,1,1,1,0,0,1,1,
    0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0
};

const int introLineThree [1482] = {     //78 by 19
    0,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,0,0,0,1,0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