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:
- 65:6105f47929dd
- Parent:
- 64:8ccfdd24a582
- Child:
- 66:0123bd3dcbc6
--- a/SpaceInvadersEngine/SpaceInvadersEngine.cpp Sat Apr 27 16:30:30 2019 +0000
+++ b/SpaceInvadersEngine/SpaceInvadersEngine.cpp Sat Apr 27 16:49:30 2019 +0000
@@ -54,11 +54,11 @@
_A1ien.update(_d,_mag);
}
- void SpaceInvadersEngine::check_wall_collision(Gamepad &pad) {
+ void SpaceInvadersEngine::check_Alien_collision(Gamepad &pad) {
- // read current Alien attributes
- Vector2D Alien_pos = _Alien.get_pos();
- Vector2D Alien_velocity = _Alien.get_velocity();
+ // read current bullet attributes
+ Vector2D bullet_pos = _bullet.get_pos();
+ Vector2D bullet_velocity = _bullet.get_velocity();
}