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@3:8a140aa1ddcd, 2020-03-14 (annotated)
- Committer:
- josh_ohara
- Date:
- Sat Mar 14 21:19:58 2020 +0000
- Revision:
- 3:8a140aa1ddcd
- Parent:
- 2:c2316b659b97
- Child:
- 4:18a1fc4c38e0
Some debugging done. Questions for class written.
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 | 2:c2316b659b97 | 14 | |
| josh_ohara | 2:c2316b659b97 | 15 | private: |
| josh_ohara | 2:c2316b659b97 | 16 | int Y; |
| josh_ohara | 2:c2316b659b97 | 17 | int X; |
| josh_ohara | 2:c2316b659b97 | 18 | int Speed; |
| josh_ohara | 2:c2316b659b97 | 19 | int Size; |
| josh_ohara | 2:c2316b659b97 | 20 | }; |
| josh_ohara | 2:c2316b659b97 | 21 | |
| josh_ohara | 2:c2316b659b97 | 22 | |
| josh_ohara | 2:c2316b659b97 | 23 | |
| josh_ohara | 2:c2316b659b97 | 24 |