Bitmap

I don't know much about bitmaps but can you use them in p5.js? What is the best way to have a design that gets hit and you want to take small pieces off the design and continue with hit detection on the shrinking design? Is the pixel array the same as a bitmap? Can you create a design with the pixel array and use a for loop to make numerous copys of it and place it in different places?

Thanks...

Answers

  • edited May 2017

    if this is for the barriers of space invaders and they're only getting hit from the top by aliens you may get away with a 1D array rather than a bitmap

Sign In or Register to comment.