Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
boom/boom.h@4:55d904040636, 2018-04-16 (annotated)
- Committer:
- RickYu
- Date:
- Mon Apr 16 00:11:15 2018 +0000
- Revision:
- 4:55d904040636
- Parent:
- 3:1a134243e2f0
- Child:
- 5:0a116644cce2
boom random falls
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| RickYu | 3:1a134243e2f0 | 1 | #ifndef BOOM_H |
| RickYu | 3:1a134243e2f0 | 2 | #define BOOM_H |
| RickYu | 3:1a134243e2f0 | 3 | |
| RickYu | 3:1a134243e2f0 | 4 | #include "mbed.h" |
| RickYu | 3:1a134243e2f0 | 5 | #include "N5110.h" |
| RickYu | 3:1a134243e2f0 | 6 | #include "Gamepad.h" |
| RickYu | 3:1a134243e2f0 | 7 | class boom{ |
| RickYu | 3:1a134243e2f0 | 8 | |
| RickYu | 3:1a134243e2f0 | 9 | public: |
| RickYu | 3:1a134243e2f0 | 10 | boom(); |
| RickYu | 3:1a134243e2f0 | 11 | ~boom(); |
| RickYu | 3:1a134243e2f0 | 12 | void init(int x,int y); |
| RickYu | 3:1a134243e2f0 | 13 | void draw(N5110 &lcd); |
| RickYu | 4:55d904040636 | 14 | void update(); |
| RickYu | 3:1a134243e2f0 | 15 | Vector2D get_pos(); |
| RickYu | 3:1a134243e2f0 | 16 | |
| RickYu | 3:1a134243e2f0 | 17 | private: |
| RickYu | 3:1a134243e2f0 | 18 | int boom_x; |
| RickYu | 3:1a134243e2f0 | 19 | int boom_y; |
| RickYu | 3:1a134243e2f0 | 20 | int boom_speed; |
| RickYu | 3:1a134243e2f0 | 21 | |
| RickYu | 3:1a134243e2f0 | 22 | |
| RickYu | 3:1a134243e2f0 | 23 | |
| RickYu | 3:1a134243e2f0 | 24 | |
| RickYu | 3:1a134243e2f0 | 25 | }; |
| RickYu | 3:1a134243e2f0 | 26 | |
| RickYu | 3:1a134243e2f0 | 27 | |
| RickYu | 3:1a134243e2f0 | 28 | #endif |