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-04-12
- Revision:
- 7:e567cd172d2a
- Parent:
- 5:217e18adcba7
- Child:
- 8:27e7d776ac0b
File content as of revision 7:e567cd172d2a:
#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_undraw_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