Updated Space Invaders on the mbed. Improved upon Michael Son's "Mbed Space Invaders" at https://os.mbed.com/users/michaeljson/notebook/mbed-space-invaders/.

Dependencies:   mbed wave_player mbed-rtos 4DGL-uLCD-SE SparkfunAnalogJoystick SDFileSystem LSM9DS1_Library_cal_updated

Fork of Two-PlayerSpaceInvaders by William Minix

test

Revision:
21:a6b4c5598083
Parent:
20:ede4fa57d082
Child:
22:a907eeb128a4
--- a/main.cpp	Sun Apr 25 03:13:50 2021 +0000
+++ b/main.cpp	Sun Apr 25 04:04:31 2021 +0000
@@ -1013,8 +1013,7 @@
             }
             // Control Player with Analog Joystick -- Brice    
             float stickDist = stick.xAxis();
-            if ((stickDist < 0.0) && (player.player_blk_x + stickDist*3 > 0.0))
-            {
+            if ((stickDist < 0.0) && (player.player_blk_x + stickDist*3 > 0.0)){
                 player_erase(&player);
                 //player.player_blk_x -= 3;
                 player.player_blk_x += (int)(stickDist*3);