>>11864802 (OP)standard aabb collision function, but if you have a lot of objects on screen at once it can get particularly cpu intensive
in my homebrew game i just check at 30fps, even frames check collisions between player hurtbox and enemy hitboxes, odd frames check collisions between player hitbox and enemy hurtboxes
but checking collisions between every single object on screen is O(n^2) so a lot of old games with busy scenes do what doom does, really great video on it:
https://www.youtube.com/watch?v=-IYz6-KnvWU&t
@11864885
mental illness
https://desuarchive.org/_/search/text/Fuck%20off%2C%20frog%20posting%20retard/