tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

A player that is out is invisible on other players screen #608

Open TheoPannetier opened 1 year ago

TheoPannetier commented 1 year ago

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.

janclod commented 1 year ago

This seems tricky, probably it is easier to render the player immune for few seconds after be resurrected. Does this achieve the same goal?