Yes. Many objects collide with the player, and I'd rather have it consistently positioned for all collision tests. If the player took part in the object randomization, objects processed before the player would see it in one place and the ones after it in another.thefox wrote:Why do you update the player object first? (Because its position is needed for the enemy-player collisions?)
This was true at some point, but eventually I decided to have the camera follow the previous position of the player. I made this decision because the previous position is known to be valid, while the current position could still be modified by objects pushing the player.tepples wrote:Perhaps because the camera follows the player.
I have to confess I'm starting to forget some of the decisions I made regarding this aspect of my Sonic-like game. I haven't looked at the source in years, so there is a possibility I'm talking nonsense! =)