Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed N5110 ShiftReg PinDetect
Resources.h
- Committer:
- Siriagus
- Date:
- 2015-05-10
- Revision:
- 15:d5eb13c4c1c6
- Parent:
- 13:7ab71c7c311b
- Child:
- 16:caf613d5b85e
File content as of revision 15:d5eb13c4c1c6:
#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,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} }; } #endif