Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Resources.h

Committer:
Siriagus
Date:
2015-05-09
Revision:
13:7ab71c7c311b
Parent:
12:8178fad5e660
Child:
15:d5eb13c4c1c6

File content as of revision 13:7ab71c7c311b:

#ifndef RESOURCES_H
#define RESOURCES_H

// Resource files - sprites/images stored as arrays

/// Images: Arrays consisting of 1 (opaque) or 0 (blank).
namespace Image
{   
    const int Square5[5][5] = {
        {1, 1, 1, 1, 1},
        {1, 0, 0, 0, 1},
        {1, 0, 0, 0, 1},
        {1, 0, 0, 0, 1},
        {1, 1, 1, 1, 1}
    };
    
    // Player sprite
    const int Player[5][5] = {
        {0, 0, 1, 1, 0},
        {0, 1, 0, 0, 1},
        {1, 0, 1, 1, 0},
        {0, 0, 1, 1, 0},
        {0, 1, 0, 0, 1}
    };
    
    const int Cross3[3][3] = {
        {0,1,0},
        {1,1,1},
        {0,1,0}
    };
    
    const int Enemy2[4][3] = {
        {1,1,1},
        {0,1,0},
        {1,1,1},
        {1,0,1}
    };
    
    const int Enemy1[5][5] = {
        {1,0,0,0,1},
        {0,1,1,1,0},
        {0,0,1,0,0},
        {0,1,1,1,0},
        {1,1,0,1,1}
    };
}

#endif