Image library for all the graph. Just test

Committer:
MYY
Date:
Mon May 06 13:17:38 2019 +0000
Revision:
5:2dfd00ecc02e
Parent:
3:d31341240f10
Add a new function called hanging to make the whole coding more efficient.

Who changed what in which revision?

UserRevisionLine numberNew 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 }