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:
- 5:32421eb42841
- Parent:
- 4:4ce558075c32
- Child:
- 6:2aec1ed2a75a
--- a/Basket.h Tue Mar 21 11:08:39 2017 +0000 +++ b/Basket.h Thu Mar 23 15:24:22 2017 +0000 @@ -11,21 +11,22 @@ Basket(); ~Basket(); - void Basket_init(int y, int width); - void Basket_draw(N5110 &lcd); - void Basket_move(Direction d, float mag); - void Basket_score(); - int get_Basket_score(); - int get_Basket_x(); - int get_Basket_y(); + void init(int y, int width); + void draw(N5110 &lcd); + void move(Direction d, float mag, Gamepad &pad); + void add_score(); + int get_score(); + int get_x(); + int get_y(); private: - int basket_y; - int basket_x; + int y_ref; + int x_ref; int basket_width; - int basket_speed; - int basket_score; + int stick_speed; + int bumper_speed; + int score; }; #endif