I thought since I had already done it in c#, doing polygon collisions for this JavaScript asteroids assignment would be fairly easy, but the added complexity of concave objects and rotations is quite daunting
Comments
Log in with your Bluesky account to leave a comment
If it were just one or the other I think it wouldn't be as bad, but trying to figure out the best way to pass around the data I need for both to work without copying a bunch of data several times is a tough ask. I might just cave and do the copying, memory be damned
Comments
Eff my math, every asteroid is a spherical cow, and when 2 cows kiss we rasterize.
Cause looping through a list of hitboxes 1px tall is easy.