Image library for all the graph. Just test
Diff: hanging2.cpp
- Revision:
- 6:100377ba0900
- Parent:
- 5:2dfd00ecc02e
--- a/hanging2.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_2(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_2(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