![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
KakuGraphicBuilder.cpp@29:7784b098ef1d, 2016-12-12 (annotated)
- Committer:
- kaku_jyoko
- Date:
- Mon Dec 12 11:13:59 2016 +0000
- Revision:
- 29:7784b098ef1d
- Parent:
- 28:efe19c092c2c
corrision and make_wall
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kaku_jyoko | 28:efe19c092c2c | 1 | #include "kaku_integrate.h" |
kaku_jyoko | 28:efe19c092c2c | 2 | #include "models.h" |
kaku_jyoko | 28:efe19c092c2c | 3 | #include "graphics.h" |
kaku_jyoko | 28:efe19c092c2c | 4 | |
kaku_jyoko | 28:efe19c092c2c | 5 | char map = {0x00}; |
kaku_jyoko | 28:efe19c092c2c | 6 | |
kaku_jyoko | 28:efe19c092c2c | 7 | |
kaku_jyoko | 28:efe19c092c2c | 8 | KakuGraphicBuilder::KakuGraphicBuilder() |
kaku_jyoko | 28:efe19c092c2c | 9 | { |
kaku_jyoko | 28:efe19c092c2c | 10 | Bitmap b = { |
kaku_jyoko | 28:efe19c092c2c | 11 | LCD_X, |
kaku_jyoko | 28:efe19c092c2c | 12 | LCD_Y, |
kaku_jyoko | 28:efe19c092c2c | 13 | LCD_X / 8, |
kaku_jyoko | 28:efe19c092c2c | 14 | map, |
kaku_jyoko | 28:efe19c092c2c | 15 | }; |
kaku_jyoko | 28:efe19c092c2c | 16 | bitmap_all = b; |
kaku_jyoko | 28:efe19c092c2c | 17 | reset_white_board(); |
kaku_jyoko | 28:efe19c092c2c | 18 | } |
kaku_jyoko | 28:efe19c092c2c | 19 | |
kaku_jyoko | 28:efe19c092c2c | 20 | Bitmap KakuGraphicBuilder::integrateBitmap(point pe, point bu, point st[]) |
kaku_jyoko | 28:efe19c092c2c | 21 | { |
kaku_jyoko | 28:efe19c092c2c | 22 | Bitmap b; |
kaku_jyoko | 28:efe19c092c2c | 23 | return b; |
kaku_jyoko | 28:efe19c092c2c | 24 | |
kaku_jyoko | 28:efe19c092c2c | 25 | } |
kaku_jyoko | 28:efe19c092c2c | 26 | |
kaku_jyoko | 28:efe19c092c2c | 27 | void KakuGraphicBuilder::convolution(point p, int width, int height) |
kaku_jyoko | 28:efe19c092c2c | 28 | { |
kaku_jyoko | 28:efe19c092c2c | 29 | |
kaku_jyoko | 28:efe19c092c2c | 30 | } |
kaku_jyoko | 28:efe19c092c2c | 31 | |
kaku_jyoko | 28:efe19c092c2c | 32 | void KakuGraphicBuilder::reset_white_board() |
kaku_jyoko | 28:efe19c092c2c | 33 | { |
kaku_jyoko | 28:efe19c092c2c | 34 | for(int i = 0; i < LCD_Y; i++){ |
kaku_jyoko | 28:efe19c092c2c | 35 | for (int j = 0; j < LCD_X; j++){ |
kaku_jyoko | 28:efe19c092c2c | 36 | white_board[i][j] = 0; |
kaku_jyoko | 28:efe19c092c2c | 37 | } |
kaku_jyoko | 28:efe19c092c2c | 38 | } |
kaku_jyoko | 28:efe19c092c2c | 39 | } |
kaku_jyoko | 28:efe19c092c2c | 40 | |
kaku_jyoko | 28:efe19c092c2c | 41 | void intToBitmap(){ |
kaku_jyoko | 28:efe19c092c2c | 42 | for(int i = 0; i < LCD_Y ; i++){ |
kaku_jyoko | 28:efe19c092c2c | 43 | for (int j = 1; j <= LCD_X / 8; j++){ |
kaku_jyoko | 29:7784b098ef1d | 44 | |
kaku_jyoko | 28:efe19c092c2c | 45 | } |
kaku_jyoko | 28:efe19c092c2c | 46 | } |
kaku_jyoko | 28:efe19c092c2c | 47 | } |
kaku_jyoko | 28:efe19c092c2c | 48 | |
kaku_jyoko | 28:efe19c092c2c | 49 |