Image library for all the graph. Just test
Image2.cpp@3:d31341240f10, 2019-04-23 (annotated)
- Committer:
- MYY
- Date:
- Tue Apr 23 17:49:07 2019 +0000
- Revision:
- 3:d31341240f10
Create new image for second game level.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MYY | 3:d31341240f10 | 1 | #include "Image.h" |
MYY | 3:d31341240f10 | 2 | |
MYY | 3:d31341240f10 | 3 | |
MYY | 3:d31341240f10 | 4 | void Image::draw_2(N5110 &lcd) |
MYY | 3:d31341240f10 | 5 | { |
MYY | 3:d31341240f10 | 6 | int i; |
MYY | 3:d31341240f10 | 7 | //big gold |
MYY | 3:d31341240f10 | 8 | for(i=0; i<4; i=i+1) { |
MYY | 3:d31341240f10 | 9 | lcd.drawSprite(level_2_x[i],level_2_y[i], 5, 8, (int*)BigGold); |
MYY | 3:d31341240f10 | 10 | }; |
MYY | 3:d31341240f10 | 11 | // small gold |
MYY | 3:d31341240f10 | 12 | for(i=4; i<7; i=i+1) { |
MYY | 3:d31341240f10 | 13 | lcd.drawSprite(level_2_x[i], level_2_y[i], 4, 3, (int*)SmallGold); |
MYY | 3:d31341240f10 | 14 | }; |
MYY | 3:d31341240f10 | 15 | //Big rock |
MYY | 3:d31341240f10 | 16 | for(i=7; i<10; i=i+1) { |
MYY | 3:d31341240f10 | 17 | lcd.drawSprite(level_2_x[i], level_2_y[i], 8, 10, (int*)BigRock); |
MYY | 3:d31341240f10 | 18 | } |
MYY | 3:d31341240f10 | 19 | } |