Bingshuo Chen
/
Monster_copy_copy
27
Diff: Shapes/shapes.h
- Revision:
- 0:ef959ad27a16
- Child:
- 2:9a31febe6d2f
diff -r 000000000000 -r ef959ad27a16 Shapes/shapes.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Shapes/shapes.h Thu Apr 08 02:09:25 2021 +0000 @@ -0,0 +1,88 @@ +#ifndef SHAPES_H +#define SHAPES_H + +#include "mbed.h" +#include "N5110.h" + +/* +const int whiteMonster[7][6]; +const int blackMonster[7][7]; +const int blackAntiMonster[7][7]; +const int shapHeart[4][5]; +const int shapStar[3][3]; +*/ + +const int whiteMonster[6][7] = { + + { 0,0,0,1,0,0,0 }, + { 0,1,0,0,0,1,0 }, + { 0,0,1,0,1,0,0 }, + { 1,0,1,0,1,0,1 }, + { 1,0,0,0,0,0,1 }, + { 1,0,1,0,1,0,1 }, + +}; + + +const int blackMonster[7][7] = { + + { 0,0,1,1,1,0,0 }, + { 0,1,1,1,1,1,0 }, + { 1,1,0,1,0,1,1 }, + { 1,1,0,1,0,1,1 }, + { 1,1,1,1,1,1,1 }, + { 1,0,1,0,1,0,1 }, + { 0,0,0,0,0,0,0 }, + +}; + + +const int blackAntiMonster[7][7] = { + + { 0,0,0,0,0,0,0 }, + { 1,0,1,0,1,0,1 }, + { 1,1,1,1,1,1,1 }, + { 1,1,0,1,0,1,1 }, + { 1,1,0,1,0,1,1 }, + { 0,1,1,1,1,1,0 }, + { 0,0,1,1,1,0,0 }, + +}; + + +const int shapHeart[4][5] = { + + { 1,1,0,1,1 }, + { 1,1,1,1,1 }, + { 0,1,1,1,0 }, + { 0,0,1,0,0 }, + +}; + + +const int shapStar[3][3] = { + + { 1,0,1 }, + { 0,1,0 }, + { 1,0,1 }, + +}; + +const int bigMonster[12][14] { + + { 0,0,0,0,0,0,1,1,0,0,0,0,0,0 }, + { 0,0,0,0,0,0,1,1,0,0,0,0,0,0 }, + { 0,0,1,1,0,0,0,0,0,0,1,1,0,0 }, + { 0,0,1,1,0,0,0,0,0,0,1,1,0,0 }, + { 0,0,0,0,1,1,0,0,1,1,0,0,0,0 }, + { 0,0,0,0,1,1,0,0,1,1,0,0,0,0 }, + { 1,1,0,0,1,1,0,0,1,1,0,0,1,1 }, + { 1,1,0,0,1,1,0,0,1,1,0,0,1,1 }, + { 1,1,0,0,0,0,0,0,0,0,0,0,1,1 }, + { 1,1,0,0,0,0,0,0,0,0,0,0,1,1 }, + { 1,1,0,0,1,1,0,0,1,1,0,0,1,1 }, + { 1,1,0,0,1,1,0,0,1,1,0,0,1,1 }, + +}; + +#endif \ No newline at end of file