Image library for all the graph. Just test
Diff: hanging.cpp
- Revision:
- 6:100377ba0900
- Parent:
- 5:2dfd00ecc02e
diff -r 2dfd00ecc02e -r 100377ba0900 hanging.cpp --- a/hanging.cpp Mon May 06 13:17:38 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -#include"Image.h" - -void Image::hanging(int x, int y, const int *graph, N5110 &lcd, Image &Image, float time, int new_score, Rotate &Rotate, float angle, float speed, int sizex, int sizey) -{ - x = x - speed*cos(angle); - y = y + speed*sin(angle); - //Score = Score + new_score; - lcd.clear(); - lcd.drawSprite(x, y, sizex,sizey, (int*) graph); - lcd.drawLine(42,0, x, y,1); - Image.draw_1(lcd); - char buffer[14]; - char buffer2[14]; - sprintf(buffer,"%i",Score); - sprintf(buffer2,"%i",Timer_1); - lcd.printString(buffer,0,0); - lcd.printString(buffer2,70,0); - lcd.refresh(); - wait(time); - Rotate.hookpoint[0]=x; - Rotate.hookpoint[1]=y; -} \ No newline at end of file