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:
- 3:e6c081c7f6f1
- Parent:
- 2:4a3f97570578
- Child:
- 4:739f6e0dd8af
diff -r 4a3f97570578 -r e6c081c7f6f1 main.cpp --- a/main.cpp Thu Apr 15 23:04:18 2021 +0000 +++ b/main.cpp Fri Apr 16 14:49:18 2021 +0000 @@ -446,6 +446,8 @@ } } +//void mbedComm(void const *args) { + int main() { // Initialization of Setup variables @@ -527,7 +529,7 @@ } else if (level_cursor_y_pos == start_label_y_pos + 1) { numPlayers = 2; } - wait(0.5); + Thread::wait(500); // changed this to Thread::wait ... originally wait(0.5); } }