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:
- 69:19f1ad7b548e
- Parent:
- 68:175190a03cbd
- Child:
- 70:7f0b330ff40b
--- a/SpaceInvadersEngine/SpaceInvadersEngine.cpp Sat Apr 27 19:04:41 2019 +0000
+++ b/SpaceInvadersEngine/SpaceInvadersEngine.cpp Sat Apr 27 19:19:10 2019 +0000
@@ -88,7 +88,12 @@
_bullet.set_pos(bullet_pos);
}
+void SpaceInvadersEngine::check_space_ship_collisions(Gamepad &pad){
+ // read current bullet attributes
+ Vector2D bullet_pos = _bullet.get_pos();
+ Vector2D bullet_velocity = _bullet.get_velocity();
+