Library that draws a basket on a Nokia N5110 LCD display and allows it to be moved left/right on the display using buttons or a joystick.
Dependents: Game_Controller_Project
Diff: Basket.h
- Revision:
- 9:05fd30d491f1
- Parent:
- 8:48c5adc809e1
- Child:
- 10:2e441532206e
--- a/Basket.h Tue Apr 18 14:27:06 2017 +0000 +++ b/Basket.h Sat Apr 22 12:21:58 2017 +0000 @@ -11,15 +11,23 @@ Basket(); ~Basket(); + + //INITILISATION FUNCTION// void init(int y, int width); - void draw(N5110 &lcd); + + //UPDATE FUNCTIONS// void move_stick(Direction d, float mag); void move_LR(Gamepad &pad); + + //SCORE FUNCTIONS// void add_score_1(); void add_score_2(); void add_score_5(); void add_score_10(); int get_score(); + + //DISPLAY FUNCTIONS// + void draw(N5110 &lcd); int get_x(); int get_y(); @@ -29,7 +37,6 @@ int x_ref; int basket_width; int stick_speed; - int bumper_speed; int score; };