mroobit / untitled-sidescroller

2D Platformer written in Go with Ebitengine
https://shannondybvig.com/projects/untitled-sidescroller/
MIT License
1 stars 0 forks source link

FEATURE: Generalized, more accurate collision detection #11

Open mroobit opened 1 year ago

mroobit commented 1 year ago

Current Behavior: Player character collides with objects based on exterior rectangle, hitting slightly further than actual collision.

Desired Behavior: Player character collides with objects based on actual outline of specific frame. Creatures also should experience collision (with environment tiles, potentially later with weapon/bursts)

mroobit commented 1 year ago

It is desirable to have collision detection first be evaluated for player character, then creatures. It shouldn't be necessary to evaluate for other objects (treasures, gems, environment tiles, hazards) -- treasures and gems are collected by player character and experience no other collisions, environment tiles and hazards remain unchanged on contact.

Current Possible Collisions