Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Resources.h

Committer:
Siriagus
Date:
2015-05-11
Revision:
17:d6a3b29cab31
Parent:
16:caf613d5b85e

File content as of revision 17:d6a3b29cab31:

#ifndef RESOURCES_H
#define RESOURCES_H

/// @file Resources.h
/// Resource files - sprites/images stored as arrays

/// Images: Arrays consisting of 1 (opaque) or 0 (blank).
namespace Image
{   
    // 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 Pattern3[3][3] = {
        {1,0,1},
        {0,1,1},
        {1,1,1}
    };
    
    const int EnemyJumper[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 EnemyRunner[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}
    };
}

namespace Number
{
    /// Contains numbers from 0-9. Each number has the size 3 x 5 pixels
    const int Zero[5][3] = {
        {1,1,1},
        {1,0,1},
        {1,0,1},
        {1,0,1},
        {1,1,1}
    };
    
    const int One[5][3] = {
        {0,1,0},
        {1,1,0},
        {0,1,0},
        {0,1,0},
        {0,1,0}
    };
    
     const int Two[5][3] = {
        {1,1,1},
        {0,0,1},
        {1,1,1},
        {1,0,0},
        {1,1,1}
    };
    
     const int Three[5][3] = {
        {1,1,1},
        {0,0,1},
        {1,1,1},
        {0,0,1},
        {1,1,1}
    };
    
     const int Four[5][3] = {
        {1,0,1},
        {1,0,1},
        {1,1,1},
        {0,0,1},
        {0,0,1}
    };
    
     const int Five[5][3] = {
        {1,1,1},
        {1,0,0},
        {1,1,1},
        {0,0,1},
        {1,1,1}
    };
    
     const int Six[5][3] = {
        {1,1,1},
        {1,0,0},
        {1,1,1},
        {1,0,1},
        {1,1,1}
    };
    
     const int Seven[5][3] = {
        {1,1,1},
        {0,0,1},
        {0,0,1},
        {0,0,1},
        {0,0,1}
    };
    
     const int Eight[5][3] = {
        {1,1,1},
        {1,0,1},
        {1,1,1},
        {1,0,1},
        {1,1,1}
    };
    
     const int Nine[5][3] = {
        {1,1,1},
        {1,0,1},
        {1,1,1},
        {0,0,1},
        {0,0,1}
    };
}

#endif