ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Sprite/Vehicle.h

Committer:
el19tb
Date:
2020-05-18
Revision:
38:a6e040bf0e35
Parent:
14:6fe667ec957e
Child:
44:f02510eeb165

File content as of revision 38:a6e040bf0e35:

#ifndef VEHICLE_H
#define VEHICLE_H

// size of grid of the game
// three states of the frog
// still, movement 1 , movement two
int frog_state_one[4][6] = {

    //final and initial state of frog
    { 0, 1, 0, 0, 1, 0 },
    { 0, 1, 1, 1, 1, 0 },
    { 0, 1, 1, 1, 1, 0 },
    { 0, 1, 0, 0, 1, 0 },

};

int frog_state_two[4][6] = {

    // second state of frog
    { 0, 0, 0, 0, 0, 0 },
    { 1, 1, 1, 1, 1, 1 },
    { 1, 1, 1, 1, 1, 1 },
    { 0, 0, 0, 0, 0, 0 },

};

int frog_state_three[4][6] = {

    // third state of frog 
    { 1, 0, 0, 0, 0, 1 },
    { 0, 1, 1, 1, 1, 0 },
    { 0, 1, 1, 1, 1, 0 },
    { 1, 0, 0, 0, 0, 1 },

};

// R
int right_racer[4][6] = {
    
    { 1, 0, 1, 1, 0, 0 },
    { 1, 1, 1, 1, 1, 1 },
    { 1, 1, 1, 1, 1, 1 },
    { 1, 0, 1, 1, 0, 0 },
    
};

// L
int left_racer[4][6] = {
   
    { 0, 0, 1, 1, 0, 1 },
    { 1, 1, 1, 1, 1, 1 },
    { 1, 1, 1, 1, 1, 1 },
    { 0, 0, 1, 1, 0, 1 },
    
};

// N
int right_normal[4][5] = {
   
    { 0, 0, 0, 0, 0 },
    { 1, 1, 1, 1, 1 },
    { 1, 1, 1, 1, 1 },
    { 0, 0, 0, 0, 0 },
    
};

// X
int left_normal[4][5] = {
   
    { 0, 0, 0, 0, 0 },
    { 1, 1, 1, 1, 1 },
    { 1, 1, 1, 1, 1 },
    { 0, 0, 0, 0, 0 },
    
};

// B
int bus[4][7] = {
   
    // bus has a longer width
    { 0, 1, 0, 0, 1, 0, 0 },
    { 1, 1, 1, 1, 1, 1, 1 },
    { 1, 1, 1, 1, 1, 1, 1 },
    { 0, 1, 0, 0, 1, 0, 0 },

};

#endif