doodle/pkg/collision
Noah Petherbridge 695ff4da42 Collision: Fix clipping thru left walls, w/ caveats
There was a clipping bug where the player could sometimes clip thru a
left-side wall, if the left wall and floor made a 90 degree bend and the
player was holding the Left key while jumping slightly into the wall.

A band-aid that seems to work involved two steps:
1. When capping their leftward movement, add a "+ 1" to the cap.
2. At the start of the point loop, enforce the left cap like we do the
   ceiling cap.

This seems to patch the problem, BUT it breaks the ability to walk up
slopes while moving left. Right-facing slopes can be climbed fine still.

Note: the original bug never was a problem against right walls, only
left ones, but the true root cause was not identified. See TODO comments
in collide_level.go.
2020-04-11 19:21:12 -07:00
..
actors_test.go Doodads: Crumbly Floor, Start Flag & State Blocks 2019-12-30 18:13:28 -08:00
bounding_rect.go Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
collide_actors.go Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
collide_level.go Collision: Fix clipping thru left walls, w/ caveats 2020-04-11 19:21:12 -07:00
debug_box.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
level_test.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00