ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Models/models.h

Committer:
Noximilien
Date:
2019-03-11
Revision:
7:42376925945c
Parent:
6:100b46be4bea
Child:
8:c18c240665aa

File content as of revision 7:42376925945c:

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "main.h"




int spaceship1_width = 15;
int spaceship1_height = 14;

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

void starMinor(int x, int y){
    lcd.setPixel(x,y,true);
}

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

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

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

int simpleLaserShot[3] = {1,1,1};

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

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