Prints objects on to a Nokia N5110 LCD display and makes them 'fall' down the display.
Dependents: Game_Controller_Project
Objects.h@1:a05d10d3d33f, 2017-03-17 (annotated)
- Committer:
- Nathanj94
- Date:
- Fri Mar 17 15:34:43 2017 +0000
- Revision:
- 1:a05d10d3d33f
- Parent:
- 0:a1d36c50a0b7
- Child:
- 2:3f42da6a4c89
Objects.h developed; Objects.cpp developed; Basic functions completed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Nathanj94 | 0:a1d36c50a0b7 | 1 | #ifndef OBJECTS_H |
Nathanj94 | 0:a1d36c50a0b7 | 2 | #define OBJECTS_H |
Nathanj94 | 0:a1d36c50a0b7 | 3 | |
Nathanj94 | 0:a1d36c50a0b7 | 4 | #include "mbed.h" |
Nathanj94 | 1:a05d10d3d33f | 5 | #include "N5110.h" |
Nathanj94 | 0:a1d36c50a0b7 | 6 | #include "Gamepad.h" |
Nathanj94 | 0:a1d36c50a0b7 | 7 | #include "Basket.h" |
Nathanj94 | 0:a1d36c50a0b7 | 8 | |
Nathanj94 | 0:a1d36c50a0b7 | 9 | class Objects |
Nathanj94 | 0:a1d36c50a0b7 | 10 | { |
Nathanj94 | 0:a1d36c50a0b7 | 11 | public: |
Nathanj94 | 0:a1d36c50a0b7 | 12 | |
Nathanj94 | 0:a1d36c50a0b7 | 13 | Objects(); |
Nathanj94 | 0:a1d36c50a0b7 | 14 | ~Objects(); |
Nathanj94 | 1:a05d10d3d33f | 15 | void Objects_init(int speed); |
Nathanj94 | 1:a05d10d3d33f | 16 | void Objects_draw(N5110 &lcd); |
Nathanj94 | 1:a05d10d3d33f | 17 | void Objects_move(); |
Nathanj94 | 1:a05d10d3d33f | 18 | int get_Objects_pos(); |
Nathanj94 | 1:a05d10d3d33f | 19 | |
Nathanj94 | 1:a05d10d3d33f | 20 | private: |
Nathanj94 | 1:a05d10d3d33f | 21 | |
Nathanj94 | 1:a05d10d3d33f | 22 | int Objects_size; |
Nathanj94 | 1:a05d10d3d33f | 23 | int Objects_x; |
Nathanj94 | 1:a05d10d3d33f | 24 | int Objects_y; |
Nathanj94 | 1:a05d10d3d33f | 25 | int Objects_ep; |
Nathanj94 | 1:a05d10d3d33f | 26 | int Objects_speed; |
Nathanj94 | 1:a05d10d3d33f | 27 | }; |
Nathanj94 | 1:a05d10d3d33f | 28 | #endif |