doodle/pkg/collision
Noah Petherbridge d14eaf7df2 Collision Box Updates
* The F4 key to draw collision boxes works reliably again: it draws the
  player's hitbox in world-space using the canvas.DrawStrokes()
  function, rather than in screen-space so it follows the player
  reliably.
* The F4 key also draws hitboxes for ALL other actors in the level:
  buttons, enemies, doors, etc.
* The level geometry collision function is updated to respect a doodad's
  declared Hitbox from their script, which may result in a smaller box
  than their raw Canvas size. The result is tighter collision between
  doodads, and Boy's sprite is rather narrow for its square Canvas so
  collision on rightward geometry is tighter for the player character.
* Collision checks between actors also respect the actor's declared
  hitboxes now, allowing for Boy to get even closer to a locked door
  before being blocked.
2021-06-02 20:50:28 -07:00
..
actors_test.go Doodads: Crumbly Floor, Start Flag & State Blocks 2019-12-30 18:13:28 -08:00
bounding_rect.go Collision Box Updates 2021-06-02 20:50:28 -07:00
collide_actors.go Collision Box Updates 2021-06-02 20:50:28 -07:00
collide_level.go Collision Box Updates 2021-06-02 20:50:28 -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