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
BulletS/BulletS.h@5:e5bb95fb308b, 2020-03-22 (annotated)
- Committer:
- josh_ohara
- Date:
- Sun Mar 22 19:06:39 2020 +0000
- Revision:
- 5:e5bb95fb308b
- Parent:
- 4:18a1fc4c38e0
- Child:
- 6:5bea67cc96f9
again
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| josh_ohara | 2:c2316b659b97 | 1 | |
| josh_ohara | 3:8a140aa1ddcd | 2 | #include "mbed.h" |
| josh_ohara | 3:8a140aa1ddcd | 3 | #include "N5110.h" |
| josh_ohara | 3:8a140aa1ddcd | 4 | #include "Gamepad.h" |
| josh_ohara | 2:c2316b659b97 | 5 | |
| josh_ohara | 2:c2316b659b97 | 6 | class Bullet |
| josh_ohara | 2:c2316b659b97 | 7 | { |
| josh_ohara | 2:c2316b659b97 | 8 | public: |
| josh_ohara | 2:c2316b659b97 | 9 | Bullet(); |
| josh_ohara | 3:8a140aa1ddcd | 10 | void init(int size, int speed); |
| josh_ohara | 2:c2316b659b97 | 11 | void draw(N5110 &lcd); |
| josh_ohara | 2:c2316b659b97 | 12 | void update(); |
| josh_ohara | 2:c2316b659b97 | 13 | Vector2D get_position(); |
| josh_ohara | 4:18a1fc4c38e0 | 14 | // void set_hit(bool hit); |
| josh_ohara | 2:c2316b659b97 | 15 | |
| josh_ohara | 2:c2316b659b97 | 16 | private: |
| josh_ohara | 2:c2316b659b97 | 17 | int Y; |
| josh_ohara | 2:c2316b659b97 | 18 | int X; |
| josh_ohara | 2:c2316b659b97 | 19 | int Speed; |
| josh_ohara | 2:c2316b659b97 | 20 | int Size; |
| josh_ohara | 5:e5bb95fb308b | 21 | int Height; |
| josh_ohara | 4:18a1fc4c38e0 | 22 | // bool Hit; |
| josh_ohara | 2:c2316b659b97 | 23 | }; |
| josh_ohara | 2:c2316b659b97 | 24 | |
| josh_ohara | 2:c2316b659b97 | 25 | |
| josh_ohara | 2:c2316b659b97 | 26 | |
| josh_ohara | 2:c2316b659b97 | 27 |