![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Game designed for project
MyClasses/Blocks/Blocks.h@3:5ede4ac61af1, 2020-05-24 (annotated)
- Committer:
- vaib
- Date:
- Sun May 24 09:15:25 2020 +0000
- Revision:
- 3:5ede4ac61af1
Created a class for the balls's movement and am now working of the obstacles/blocks
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vaib | 3:5ede4ac61af1 | 1 | #ifndef BLOCKS_H |
vaib | 3:5ede4ac61af1 | 2 | #define BLOCKS_H |
vaib | 3:5ede4ac61af1 | 3 | |
vaib | 3:5ede4ac61af1 | 4 | #include "mbed.h" |
vaib | 3:5ede4ac61af1 | 5 | #include "N5110.h" |
vaib | 3:5ede4ac61af1 | 6 | #include "Gamepad.h" |
vaib | 3:5ede4ac61af1 | 7 | |
vaib | 3:5ede4ac61af1 | 8 | class Blocks |
vaib | 3:5ede4ac61af1 | 9 | { |
vaib | 3:5ede4ac61af1 | 10 | public: |
vaib | 3:5ede4ac61af1 | 11 | |
vaib | 3:5ede4ac61af1 | 12 | void init(int length, int height); |
vaib | 3:5ede4ac61af1 | 13 | void place_block(int x, int y, string block_type); |
vaib | 3:5ede4ac61af1 | 14 | void print_lcd(N5110 &lcd); |
vaib | 3:5ede4ac61af1 | 15 | Vector2D get_blockposition(); |
vaib | 3:5ede4ac61af1 | 16 | string get_blocktype(); |
vaib | 3:5ede4ac61af1 | 17 | |
vaib | 3:5ede4ac61af1 | 18 | private: |
vaib | 3:5ede4ac61af1 | 19 | |
vaib | 3:5ede4ac61af1 | 20 | |
vaib | 3:5ede4ac61af1 | 21 | |
vaib | 3:5ede4ac61af1 | 22 | } |
vaib | 3:5ede4ac61af1 | 23 | #endif |