Image library for all the graph. Just test

Image2.cpp

Committer:
MYY
Date:
2019-05-06
Revision:
5:2dfd00ecc02e
Parent:
3:d31341240f10

File content as of revision 5:2dfd00ecc02e:

#include "Image.h"


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