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 becomes transparent #609

Closed TheoPannetier closed 1 year ago

TheoPannetier commented 1 year ago

A player that has been killed should be made aware of it, appearing as transparent, at least on its own screen (see #608).

  {
    // (609) A player that is out becomes transparent
    player p;
    assert(p.get_color().get_opaqueness() == 255);
    p.die();
    assert(p.get_color().get_opaqueness() == 100);
  }
Luxwor commented 1 year ago

solved the issue