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: SpaceInvadersEngine/SpaceInvadersEngine.cpp
- Revision:
- 56:c8fc0a1f4132
- Parent:
- 55:12faef5bd754
- Child:
- 57:45c5de9cefdf
--- a/SpaceInvadersEngine/SpaceInvadersEngine.cpp Fri Apr 26 00:35:47 2019 +0000 +++ b/SpaceInvadersEngine/SpaceInvadersEngine.cpp Fri Apr 26 01:09:46 2019 +0000 @@ -44,4 +44,14 @@ void SpaceInvadersEngine::update(Gamepad&pad){ _A1.update(_d,_mag); + +} +void SpaceInvadersEngine::check_wall_collision(Gamepad &pad){ + + // read current Alien attributes + Vector2D Alien_pos = _Alien.get_pos(); + Vector2D Alien_velocity = _Alien.get_velocity(); + + } +