![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All there but errors need fixing
Tetromino/Tetromino.h
- Committer:
- el18rs
- Date:
- 2020-05-31
- Revision:
- 4:7ddd287a5d28
- Parent:
- 3:522c6f850e91
File content as of revision 4:7ddd287a5d28:
#ifndef TETROMINO_H #define TETROMINO_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Tetromino { public: Tetromino(); ~Tetromino(); 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: Vector2D _velocity; int _x; int _y; int _speed; int _number; int blockArray[5]; int blocknumber; }; #endif