![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
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: enemy.cpp
- Revision:
- 16:e4e6515bdabb
- Parent:
- 0:3817adfaeb06
- Child:
- 27:9a17cf897bf8
- Child:
- 29:ff6b8a1ad9f5
--- a/enemy.cpp Thu Apr 22 14:34:34 2021 +0000 +++ b/enemy.cpp Fri Apr 23 02:32:00 2021 +0000 @@ -4,6 +4,8 @@ void draw_enemy(int blk_x, int blk_y, int enemy_color, int e_width, int e_height) { uLCD.filled_rectangle(blk_x,blk_y,blk_x+e_width,blk_y-e_height,enemy_color); + //const int* colors = [ + //uLCD.BLIT(blk_x, blk_y, e_width, e_height, } void erase_enemy(int blk_x, int blk_y, int enemy_color, int e_width, int e_height)