Image library for all the graph. Just test

Committer:
MYY
Date:
Mon May 06 13:17:38 2019 +0000
Revision:
5:2dfd00ecc02e
Parent:
4:c594b8fa4925
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 4:c594b8fa4925 1 #include "Image.h"
MYY 4:c594b8fa4925 2
MYY 4:c594b8fa4925 3
MYY 4:c594b8fa4925 4 void Image::draw_3(N5110 &lcd)
MYY 4:c594b8fa4925 5 {
MYY 4:c594b8fa4925 6 int i;
MYY 4:c594b8fa4925 7 //big gold
MYY 4:c594b8fa4925 8 for(i=0; i<5; i=i+1) {
MYY 4:c594b8fa4925 9 lcd.drawSprite(level_3_x[i],level_3_y[i], 5, 8, (int*)BigGold);
MYY 4:c594b8fa4925 10 };
MYY 4:c594b8fa4925 11 // small gold
MYY 4:c594b8fa4925 12 for(i=5; i<8; i=i+1) {
MYY 4:c594b8fa4925 13 lcd.drawSprite(level_3_x[i], level_3_y[i], 4, 3, (int*)SmallGold);
MYY 4:c594b8fa4925 14 };
MYY 4:c594b8fa4925 15 //Big rock
MYY 4:c594b8fa4925 16 for(i=8; i<12; i=i+1) {
MYY 4:c594b8fa4925 17 lcd.drawSprite(level_3_x[i], level_3_y[i], 8, 10, (int*)BigRock);
MYY 4:c594b8fa4925 18 }
MYY 4:c594b8fa4925 19 }