The week of Thanksgiving I spent more time playing games than I did building this one, but I found some time to fix a few bugs and continue cleaning/refactoring the code. There was one interesting bug I’ll highlight:
The system that tries to keep the player on the ground if they started on the ground had a bug in it, where it would treat any collision as touching the ground. This meant that the ceiling would trigger this system and as long as you held SPACE, you would “stick” to the ceiling after colliding with it. It’s easy to do with the gate in c1a0:
The fix was to take the normal from the intersection and use that to evaluate whether the player is touching the “ground” or not. I have yet to tweak it, but the most obvious case works:
That’s all for this week!