I'm building a Web and iOS game (https://brawlbugs.com) as a side project and started implementing collision detection from scratch.
Terrible idea. Use a library like this if you're in the JavaScript ecosystem:
Terrible idea. Use a library like this if you're in the JavaScript ecosystem: