Prints objects on to a Nokia N5110 LCD display and makes them 'fall' down the display.
Dependents: Game_Controller_Project
Objects.h
- Committer:
- Nathanj94
- Date:
- 2017-03-31
- Revision:
- 5:217e18adcba7
- Parent:
- 4:56ca80919a98
- Child:
- 7:e567cd172d2a
File content as of revision 5:217e18adcba7:
#ifndef OBJECTS_H #define OBJECTS_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Basket.h" #include "Fruit.h" class Objects { public: Objects(); ~Objects(); void init(int speed); void draw(N5110 &lcd); void undraw(N5110 &lcd); void move(); int get_score_var(); int get_x(); int get_y(); private: Fruit fruit; int score_var; int undraw_var; int objects_size; int x_ref; int y_ref; int objects_ep; int objects_speed; int objects_shape; }; #endif