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
Diff: Bullets/Bullets.cpp
- Revision:
- 9:62fe47a1374f
- Parent:
- 8:0c6d6ed55851
- Child:
- 12:c557b6c9b17a
--- a/Bullets/Bullets.cpp Fri May 22 16:54:10 2020 +0000 +++ b/Bullets/Bullets.cpp Sat May 23 13:26:19 2020 +0000 @@ -2,6 +2,7 @@ Serial pcb(USBTX, USBRX); Bullets::Bullets(int ex, int wy, Direction d) { + _dir = 0; _x = ex; _y = wy; if (d == N) { @@ -52,4 +53,9 @@ int Bullets::get_y(){ return _y; } + +void Bullets::dead(){ + _x = 2147483647; + _y = 1000; +} \ No newline at end of file