Real time destruction, based on bullets, of the bases
make the invaders one color and the bases another. before drawing a bullet, check the pixel colors you'll be overwriting. all black? draw the bullet. invader color? figure out based on invader block offsets which one you hit. base color? change the collided pixels black.
when the invader offset from the top reaches a certain number, draw a black square over each base.
looking at video of the original arcade machine, it looks like they were alternating between showing the invader bullets and player bullets to allow more moving bullets at a time. so bullet collisions can't happen either
12
u/JuniperFags Dec 14 '19
SpaceInvaders <3