Ghost: full-screen grey overlay while dead (UO-style) #30

Closed
opened 2026-07-17 15:50:29 +02:00 by marco · 0 comments
Owner

Follow-up to the combat loop (#10 / PR #28). Today, when the local player dies they become a ghost and their sprite is tinted grey (others see them grey too). In UO the whole screen also desaturates/greys while you are dead — that full-screen overlay is missing.

Scope

  • When the local player is a ghost (_isGhost), draw a translucent grey overlay over the world view (UO-style "you are dead" look).
  • Clear it the instant the player resurrects (PlayerResurrected for self).
  • Client-only, cosmetic — no protocol or server change (the client already tracks _isGhost).

Out of scope

  • Desaturation shader / fancy post-processing (a simple grey quad is enough for v1).
  • Changing the ghost sprite tint (already done) or any gameplay behaviour.

Definition of Done

  • While the local player is a ghost, the world view is visibly greyed by a full-screen overlay; it disappears on resurrection — demonstrable in-game (die to a rat, see the grey screen, resurrect, screen returns to normal).
  • The overlay does not make the HUD/chat unreadable (drawn under the HUD, or light enough).
  • Other players' clients are unaffected (only the dead player sees their own overlay).
Follow-up to the combat loop (#10 / PR #28). Today, when the local player dies they become a ghost and their **sprite** is tinted grey (others see them grey too). In UO the *whole screen* also desaturates/greys while you are dead — that full-screen overlay is missing. ## Scope - When the local player is a ghost (`_isGhost`), draw a translucent grey **overlay over the world view** (UO-style "you are dead" look). - Clear it the instant the player resurrects (`PlayerResurrected` for self). - Client-only, cosmetic — no protocol or server change (the client already tracks `_isGhost`). ## Out of scope - Desaturation shader / fancy post-processing (a simple grey quad is enough for v1). - Changing the ghost sprite tint (already done) or any gameplay behaviour. ## Definition of Done - While the local player is a ghost, the world view is visibly greyed by a full-screen overlay; it disappears on resurrection — demonstrable in-game (die to a rat, see the grey screen, resurrect, screen returns to normal). - The overlay does not make the HUD/chat unreadable (drawn under the HUD, or light enough). - Other players' clients are unaffected (only the dead player sees their own overlay).
marco added this to the Alpha milestone 2026-07-20 18:37:58 +02:00
marco closed this issue 2026-07-22 06:53:47 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
marco/IsoMmo#30
No description provided.