Crappy collision resolution
Thought of a game mechanic and started coding! Didn’t give myself too much base code but I have some test sprites on screen and have some rubbish collision resolution. I’m playing with the idea that every object has a separate priority value, when two objects collide the one with the higher priority pushes the other one out of the way. This should work well for the game I intend to make. Some code:
