![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All there but errors need fixing
Diff: Tetromino/Tetromino.h
- Revision:
- 4:7ddd287a5d28
- Parent:
- 3:522c6f850e91
--- a/Tetromino/Tetromino.h Sun May 24 11:18:33 2020 +0000 +++ b/Tetromino/Tetromino.h Sun May 31 17:01:53 2020 +0000 @@ -11,19 +11,23 @@ Tetromino(); ~Tetromino(); -void init(int x, int height, int width); +void init(int number, int x, int y, int speed); void draw(N5110 &lcd, int x); void update(Direction d, float mag); Vector2D get_pos(); +Vector2D get_velocity(); private: -int _height; -int _width; +Vector2D _velocity; + int _x; int _y; int _speed; -int _shape_type; +int _number; + +int blockArray[5]; +int blocknumber; }; #endif \ No newline at end of file