Hello! I love Pico-8, however I've been trying to find out how to do collision. I've done tons of stuff, however the closest I get does the job for some games. However it can't slide.

Let's say you could move the player in 8 directions top down, and there's a wall on your right. If I hold right, I will run into the wall, however due to the way my code works (and I've tried different ways) if you hold up and right, instead of just going up it just makes you stay there. Meaning it's hard to get into 1 tile gaps in walls.

I've also noticed platformers are hard to do as well, as my code checks each corner, I have no way to check what direction a wall is, meaning if you're jumping while running into a wall, when you get to the top and only one corner is touching the wall, it makes you stick.

So is there any good collision systems that is easy to understand, and allows sliding? Thanks. :)