eliasreid / rad-shooter

Simply c++ arcade-y shooting game using SDL. WIP, no installer
1 stars 0 forks source link

Hit timing, visual alignment #2

Closed eliasreid closed 4 years ago

eliasreid commented 4 years ago

Clearly in the case below, game should have registered a hit. Need to figure out why game visual state does not align with state at collision calculation.

Have updated player pos, but have not updated enemy pos? perhaps we should update enemy pos before doing this calculation.

RadPause

eliasreid commented 4 years ago

try updating enemy position before collision check

eliasreid commented 4 years ago

Changed math, still getting issues. noticed collision with enemy "behind" the player.

Need to test against a stationary enemy