Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Resources.h

Committer:
Siriagus
Date:
2015-05-10
Revision:
16:caf613d5b85e
Parent:
15:d5eb13c4c1c6
Child:
17:d6a3b29cab31

File content as of revision 16:caf613d5b85e:

#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 EnemySimple[5][5] = {
        {1,1,0,0,0},
        {1,1,1,1,0},
        {0,0,1,0,0},
        {0,1,1,1,1},
        {1,1,0,1,1}
    };
    
    const int Enemy3[5][6] = {
        {0,1,1,0,0,0},
        {1,1,1,0,0,1},
        {1,1,1,1,1,0},
        {0,1,1,1,1,0},
        {0,1,0,0,1,0}
    };
    
    /// Contains numbers from 0-9. Each number has the size 3 x 5 pixels
    const int Numbers[5][30] = {
        {1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1},
        {1,0,1,1,1,0,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,0,0,1,1,0,1,1,0,1},
        {1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1},
        {1,0,1,0,1,0,1,0,0,0,0,1,0,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,0,1},
        {1,1,1,0,1,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,1}
    };
}

#endif