Image library for all the graph. Just test

Image.cpp

Committer:
MYY
Date:
2019-04-23
Revision:
3:d31341240f10
Parent:
2:b6d3420ab907
Child:
6:100377ba0900

File content as of revision 3:d31341240f10:

#include "Image.h"


void Image::draw_1(N5110 &lcd)
{
    int i;
    //big gold
    for(i=0; i<3; i=i+1) {
        lcd.drawSprite(level_1_x[i],level_1_y[i], 5, 8, (int*)BigGold);
    };
    // small gold
    for(i=3; i<5; i=i+1) {
        lcd.drawSprite(level_1_x[i], level_1_y[i], 4, 3, (int*)SmallGold);
    };
    //Big rock
    for(i=5; i<7; i=i+1) {
        lcd.drawSprite(level_1_x[i], level_1_y[i], 8, 10, (int*)BigRock);
    }
}