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 Gamepad N5110 mbed-rtos
Diff: EnemyBeam/EnemyBeam.cpp
- Revision:
- 5:016a7315b75d
- Parent:
- 4:4d673fb2d9dc
- Child:
- 6:1fcfd331c047
--- a/EnemyBeam/EnemyBeam.cpp Sun May 05 17:41:46 2019 +0000 +++ b/EnemyBeam/EnemyBeam.cpp Mon May 06 18:29:49 2019 +0000 @@ -27,9 +27,9 @@ void EnemyBeam::update() { - _speed = 5.0; // the speed is set at 5 + _speed = 5.0; // the speed of the beam moving is set at 5 - _a-=_speed; // the beam moves in the x direction + _a-=_speed; // the beam moves in the negative x direction }