test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
GraphicBuilder.cpp@23:33d7efd62537, 2016-12-12 (annotated)
- Committer:
- th_mbed
- Date:
- Mon Dec 12 10:19:12 2016 +0000
- Revision:
- 23:33d7efd62537
- Parent:
- 14:5da230069776
add converter
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pypy_o8o | 14:5da230069776 | 1 | #include "integrate_graphics.h" |
pypy_o8o | 14:5da230069776 | 2 | #include "point.h" |
pypy_o8o | 14:5da230069776 | 3 | #include "graphics.h" |
pypy_o8o | 14:5da230069776 | 4 | #include "C12832_lcd.h" |
pypy_o8o | 14:5da230069776 | 5 | #include "models.h" |
pypy_o8o | 14:5da230069776 | 6 | |
pypy_o8o | 14:5da230069776 | 7 | Bitmap GraphicBuilder::integrateBitmap(point pe, point bu, point st[]) |
pypy_o8o | 14:5da230069776 | 8 | { |
pypy_o8o | 14:5da230069776 | 9 | int cnt; |
pypy_o8o | 14:5da230069776 | 10 | for(int i=0;i<bitmPlayer.ySize;i++) |
pypy_o8o | 14:5da230069776 | 11 | map[pe.x+(pe.y+i)*LCD_X]=Player[i]; |
pypy_o8o | 14:5da230069776 | 12 | for(int i=0;i<bitmBullet_graphics.ySize;i++) |
pypy_o8o | 14:5da230069776 | 13 | map[bu.x+(bu.y+i)*LCD_X]=Bullet_graphics[i]; |
pypy_o8o | 14:5da230069776 | 14 | |
pypy_o8o | 14:5da230069776 | 15 | // map = lcd.buffer; |
pypy_o8o | 14:5da230069776 | 16 | |
pypy_o8o | 14:5da230069776 | 17 | return bitmap_all; |
pypy_o8o | 14:5da230069776 | 18 | } |
pypy_o8o | 14:5da230069776 | 19 | void GraphicBuilder::init(){ |
pypy_o8o | 14:5da230069776 | 20 | for (int i=0;i<LCD_X*LCD_Y;i++) |
pypy_o8o | 14:5da230069776 | 21 | map[i]=0; |
pypy_o8o | 14:5da230069776 | 22 | } |