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: SpaceInvaderEngine/SpaceInvaderEngine.cpp
- Revision:
- 28:32763617ec5f
- Parent:
- 27:eb755a345b1f
- Child:
- 33:d8284dee58db
--- a/SpaceInvaderEngine/SpaceInvaderEngine.cpp Sat May 16 16:18:32 2020 +0000
+++ b/SpaceInvaderEngine/SpaceInvaderEngine.cpp Sun May 17 11:13:10 2020 +0000
@@ -94,9 +94,9 @@
int bullet_y = bullet_position.y;
bool hit = bullet_vector[n].get_hit();
if((alien_x <= bullet_x) &&
- (bullet_x <= alien_x + A1_size - 1)&&
+ (bullet_x <= alien_x + A1_size)&&
(alien_y <= bullet_y) &&
- (bullet_y <= alien_y + A1_size - 1)&&
+ (bullet_y <= alien_y + A1_size)&&
(hit==false)&&
(alien_life == true)) {
bool T = true;