BREAKOUT Project - Help with collision detection

hmm… my reason to go for arraylist is that has a
https://py.processing.org/reference/list_remove.html

so after collision could use that to remove a brick from bricks

with a array not have that so easy…


did you try my code?

the

 for ( PVector p : bricks ) rect(p.x, p.y, bw, bh);

is a beauty? NOT ?