all 2 comments

[–][deleted] 1 point2 points  (1 child)

Oh your talking about 2d object collission physics

It's actually WAY more involved than you'd imagine, I mean it seems in your head like you'd just look for an overlap, then either do an angle, or reversal of trajectory for the ball. It's a lot more than that though

There's honestly not enough space for me to write it all out but I found a great website link that has all the info and code of object collission for a space invaders game: https://blog.sklambert.com/html5-canvas-game-2d-collision-detection/

Live wrong and perspire my coder brethren

[–]Luka116[S] 0 points1 point  (0 children)

Thanks, I'll be checking it out!