Ideally, a player that has been killed should still be visible on its own screen, but not on other players', to allow to roam free and avoid being chased and repeatedly killed by a particularly bitter or cruel opponent.
So, a player that is out should be visible as normal on its own screen, but not drawn on other players screens.
However, I am not sure this is at all possible. The problem is that we only have one "screen" (the sf::RenderWindow member in game_view), from which we set different views (via sf::View and .setViewport()). Everything is drawn once, on the window, and not separately for each player/view. Given this is a feature of SFML, I don't think we can overcome it.
Ideally, a player that has been killed should still be visible on its own screen, but not on other players', to allow to roam free and avoid being chased and repeatedly killed by a particularly bitter or cruel opponent.
So, a player that is out should be visible as normal on its own screen, but not drawn on other players screens.
However, I am not sure this is at all possible. The problem is that we only have one "screen" (the
sf::RenderWindow
member ingame_view
), from which we set different views (viasf::View
and.setViewport()
). Everything is drawn once, on the window, and not separately for each player/view. Given this is a feature of SFML, I don't think we can overcome it.