sourencho / ungroup_game

A multiplayer game about temporary alliances written with a custom engine in C++ and SFML
13 stars 1 forks source link

Re-enable parallax when player jitter is resolved #199

Open sourencho opened 4 years ago

sourencho commented 4 years ago

The background moves relative to the players position. Due to player jitter caused by flaws in interpolation (#201), the background jitters and is very distracting. I've turned off m_backgroundController.update(player_position) for now in PR #190.

A solution to this issue without fixing player jitter (and cleaner code in general imo) is to make the background update relative to the camera (m_playerView) rather than the player.