Image library for all the graph. Just test
Diff: Image3.cpp
- Revision:
- 4:c594b8fa4925
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Image3.cpp Wed May 01 18:13:07 2019 +0000 @@ -0,0 +1,19 @@ +#include "Image.h" + + +void Image::draw_3(N5110 &lcd) +{ + int i; + //big gold + for(i=0; i<5; i=i+1) { + lcd.drawSprite(level_3_x[i],level_3_y[i], 5, 8, (int*)BigGold); + }; + // small gold + for(i=5; i<8; i=i+1) { + lcd.drawSprite(level_3_x[i], level_3_y[i], 4, 3, (int*)SmallGold); + }; + //Big rock + for(i=8; i<12; i=i+1) { + lcd.drawSprite(level_3_x[i], level_3_y[i], 8, 10, (int*)BigRock); + } +} \ No newline at end of file