Post

A bit of background: Playdate has very basic collision detection which can't handle much other than AABB collisions. This means that there isn't a standard way of handling collision for the slopes which is a problem given that it won't be much of a game if you can fly straight through the obstacles.

Once I've found a collision, I just need to push the player toward that centre line and voila; half-decent, non-AABB collision with no impact on performance. If you code it correctly. I did not code it correctly.

0 reposts0 likes

Instead I applied the force regardless of whether a collision occurred 🤦 So what you actually get is a little push each frame towards that centre line. Its easy to fix, but I also kinda like the idea of having an autopilot power-up, so maybe you'll see a less terrible version somewhere down the line