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
Basket.h
- Committer:
- Nathanj94
- Date:
- 2017-03-18
- Revision:
- 3:d8deea6454df
- Parent:
- 2:5d4f2c3f3c0a
- Child:
- 4:4ce558075c32
File content as of revision 3:d8deea6454df:
#ifndef BASKET_H #define BASKET_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Basket { public: 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_pos(); private: int basket_y; int basket_x; int basket_width; int basket_speed; int basket_score; }; #endif