Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef tetris_bloc_h
- #define tetris_bloc_h
- #include <Arduino.h>
- // extern int defaultMatrice[60]; // = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
- class Bloc
- {
- public:
- Bloc();
- Bloc(byte _id);
- void setId(byte _id);
- void setFinalPos(byte _x, byte _y);
- byte posx;
- byte posy;
- byte width;
- byte height;
- byte id;
- byte finalx;
- byte finaly;
- private:
- void load();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement