doodle/pkg/collision
Noah Petherbridge 618d4b07c5 WIP: Fix actor collisions with offset hitboxes
When an actor's Hitbox doesn't begin at 0,0 the collision checks between
boxes is buggy. Current progress:

* Player is a 32x64 size sprite with a hitbox of 0,32 32x32 (bottom half)
* Landing onTop works
* Hitting onBottom works
* Bug: colliding from the side currently pushes the player 32px down
  into the floor. With non-offset doodads walking sideways into e.g. a
  locked door halts the X and Y movement until you let go, but offset
  doodads get pushed down mysteriously.
2024-05-28 22:36:53 -07:00
..
actor_mock.go Collision Detection Fix + Doodad CLI Fixes 2024-05-27 15:14:00 -07:00
actor_offset_test.go Collision Detection Fix + Doodad CLI Fixes 2024-05-27 15:14:00 -07:00
actor_offset.go Collision Detection Fix + Doodad CLI Fixes 2024-05-27 15:14:00 -07:00
actors_test.go Collision Detection Fix + Doodad CLI Fixes 2024-05-27 15:14:00 -07:00
bounding_rect.go WIP: Fix actor collisions with offset hitboxes 2024-05-28 22:36:53 -07:00
collide_actors.go Collision Box Updates 2021-06-02 20:50:28 -07:00
collide_level.go WIP: Fix actor collisions with offset hitboxes 2024-05-28 22:36:53 -07:00
collide_test.go Rename Go module 2022-09-24 15:17:25 -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 Collision Detection Fix + Doodad CLI Fixes 2024-05-27 15:14:00 -07:00