ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Sprite/Background.h

Committer:
el19tb
Date:
2020-05-15
Revision:
20:077f845f09f2
Parent:
19:6d9721ffc078
Child:
27:e2af196bd9ab
Child:
44:f02510eeb165

File content as of revision 20:077f845f09f2:

#ifndef "BACKGROUND_H"
#define "BACKGROUND_H"

int road[4][4] = {
       
    { 1, 0, 1, 0 },
    { 0, 0, 0, 0 },
    { 0, 0, 0, 0 },
    { 1, 0, 1, 0 },

};

int first_water[4][84] = {

    { 1, 0, 1, 0 },
    { 0, 0, 0, 1 },
    { 0, 1, 1, 0 },
    { 1, 0, 1, 0 },
};

int second_water[4][4] = {
    
    { 0, 1, 0, 1 },
    { 0, 0, 0, 0 },
    { 0, 1, 1, 0 },
    { 0, 1, 0, 1 },  
    
};

int third_water[4][4] = {
    { 1, 0, 0, 0 },
    { 0, 1, 1, 1 },
    { 1, 0, 0, 0 },
    { 0, 1, 0, 1 }, 

};

int safety_lanes_one[4][4] = {
    { 0, 0, 0, 1 },
    { 0, 0, 1, 1 },
    { 0, 1, 0, 0 },
    { 1, 0, 0, 1 }, 

};

int safety_lane_two[4][4] = {
    { 1, 0, 0, 1 },
    { 0, 0, 1, 1 },
    { 0, 1, 0, 0 },
    { 1, 0, 0, 0 }, 

};

class Background 
{ 
    public:
        int x; // every background is going to have a x pos
        int row; // row placed in screen   
};
 
#endif