Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Image2.cpp
- Revision:
- 3:d31341240f10
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Image2.cpp Tue Apr 23 17:49:07 2019 +0000
@@ -0,0 +1,19 @@
+#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);
+ }
+}
\ No newline at end of file