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: N5110 PinDetect PowerControl mbed
Resources.h
00001 #ifndef RESOURCES_H 00002 #define RESOURCES_H 00003 00004 /// @file Resources.h 00005 /// Resource files - sprites/images stored as arrays 00006 00007 /// Images: Arrays consisting of 1 (opaque) or 0 (blank). 00008 namespace Image 00009 { 00010 // Player sprite 00011 const int Player[5][5] = { 00012 {0, 0, 1, 1, 0}, 00013 {0, 1, 0, 0, 1}, 00014 {1, 0, 1, 1, 0}, 00015 {0, 0, 1, 1, 0}, 00016 {0, 1, 0, 0, 1} 00017 }; 00018 00019 const int Pattern3[3][3] = { 00020 {1,0,1}, 00021 {0,1,1}, 00022 {1,1,1} 00023 }; 00024 00025 const int EnemyJumper[4][3] = { 00026 {1,1,1}, 00027 {0,1,0}, 00028 {1,1,1}, 00029 {1,0,1} 00030 }; 00031 00032 const int EnemySimple[5][5] = { 00033 {1,1,0,0,0}, 00034 {1,1,1,1,0}, 00035 {0,0,1,0,0}, 00036 {0,1,1,1,1}, 00037 {1,1,0,1,1} 00038 }; 00039 00040 const int EnemyRunner[5][6] = { 00041 {0,1,1,0,0,0}, 00042 {1,1,1,0,0,1}, 00043 {1,1,1,1,1,0}, 00044 {0,1,1,1,1,0}, 00045 {0,1,0,0,1,0} 00046 }; 00047 } 00048 00049 namespace Number 00050 { 00051 /// Contains numbers from 0-9. Each number has the size 3 x 5 pixels 00052 const int Zero[5][3] = { 00053 {1,1,1}, 00054 {1,0,1}, 00055 {1,0,1}, 00056 {1,0,1}, 00057 {1,1,1} 00058 }; 00059 00060 const int One[5][3] = { 00061 {0,1,0}, 00062 {1,1,0}, 00063 {0,1,0}, 00064 {0,1,0}, 00065 {0,1,0} 00066 }; 00067 00068 const int Two[5][3] = { 00069 {1,1,1}, 00070 {0,0,1}, 00071 {1,1,1}, 00072 {1,0,0}, 00073 {1,1,1} 00074 }; 00075 00076 const int Three[5][3] = { 00077 {1,1,1}, 00078 {0,0,1}, 00079 {1,1,1}, 00080 {0,0,1}, 00081 {1,1,1} 00082 }; 00083 00084 const int Four[5][3] = { 00085 {1,0,1}, 00086 {1,0,1}, 00087 {1,1,1}, 00088 {0,0,1}, 00089 {0,0,1} 00090 }; 00091 00092 const int Five[5][3] = { 00093 {1,1,1}, 00094 {1,0,0}, 00095 {1,1,1}, 00096 {0,0,1}, 00097 {1,1,1} 00098 }; 00099 00100 const int Six[5][3] = { 00101 {1,1,1}, 00102 {1,0,0}, 00103 {1,1,1}, 00104 {1,0,1}, 00105 {1,1,1} 00106 }; 00107 00108 const int Seven[5][3] = { 00109 {1,1,1}, 00110 {0,0,1}, 00111 {0,0,1}, 00112 {0,0,1}, 00113 {0,0,1} 00114 }; 00115 00116 const int Eight[5][3] = { 00117 {1,1,1}, 00118 {1,0,1}, 00119 {1,1,1}, 00120 {1,0,1}, 00121 {1,1,1} 00122 }; 00123 00124 const int Nine[5][3] = { 00125 {1,1,1}, 00126 {1,0,1}, 00127 {1,1,1}, 00128 {0,0,1}, 00129 {0,0,1} 00130 }; 00131 } 00132 00133 #endif
Generated on Tue Jul 12 2022 21:59:47 by
1.7.2