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: Rocket/Rocket.cpp
- Revision:
- 14:cf4a32245152
- Parent:
- 12:4d7f1349d796
--- a/Rocket/Rocket.cpp Fri May 04 23:26:17 2018 +0000
+++ b/Rocket/Rocket.cpp Sun May 06 16:17:41 2018 +0000
@@ -12,10 +12,11 @@
void Rocket::init()
{
- //initialise the rocket position and speed
+ //initialise the rocket position, speed and collisions
_x = 15 ;
_y = HEIGHT/2 ;
_speed = 1;
+ _collision=0;
}
void Rocket::draw(N5110 &lcd)