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
test
Diff: main.cpp
- Revision:
- 1:618aa2c4ca6a
- Parent:
- 0:3817adfaeb06
- Child:
- 2:4a3f97570578
--- a/main.cpp Tue Mar 15 19:09:51 2016 +0000 +++ b/main.cpp Tue Mar 15 19:46:47 2016 +0000 @@ -520,7 +520,9 @@ blk_x = player.player_blk_x+(player.player_width/2); blk_y = player.player_blk_y; missile_init(&missile, blk_x, blk_y, WHITE); - enemy_missile_init(&enemy_missile, blk_x, blk_y, WHITE); + int e_blk_x = 0; + int e_blk_y = 2; + enemy_missile_init(&enemy_missile, e_blk_x, e_blk_y, WHITE); // prints lives uLCD.locate(0,0);