[Game] Add Death and Victory screens #49

Closed
opened 2024-05-16 15:24:59 +00:00 by legonzaur · 6 comments
Owner
No description provided.
legonzaur added this to the Release milestone 2024-05-16 15:24:59 +00:00
legonzaur added the
complexity
medium
enhancement
labels 2024-05-16 15:24:59 +00:00
legonzaur added this to the HeronSkyMap project 2024-05-16 15:25:54 +00:00
Owner

proposal (as a quick-win):

because the backend probably does not notify that the game has ended, we could in front-end logic change the PlayerSlot component to a Results component displaying both the Victor and the Loser(s)

proposal (as a quick-win): because the backend probably does not notify that the game has ended, we could in front-end logic change the PlayerSlot component to a Results component displaying both the Victor and the Loser(s)
Author
Owner

A backend modification should be possible and quick with a new context (game_ended) and a context data (won or lost)

A backend modification should be possible and quick with a new context (game_ended) and a context data (won or lost)
Author
Owner

Needs 27dd89fcd3

Needs https://git.legonzaur.fr/legonzaur/heron-realms/commit/27dd89fcd3202360cf75386ab3b4f7c957c34b80
Author
Owner

We just need to add code inside those two functions. Those are supposed to be called automatically already.

ae638ba920/components/GameBoard.vue (L33)

ae638ba920/components/GameBoard.vue (L37)

We just need to add code inside those two functions. Those are supposed to be called automatically already. https://git.legonzaur.fr/legonzaur/heron-realms-front/src/commit/ae638ba920d0d5da5a0758e7dbc806c70dc9c282/components/GameBoard.vue#L33 https://git.legonzaur.fr/legonzaur/heron-realms-front/src/commit/ae638ba920d0d5da5a0758e7dbc806c70dc9c282/components/GameBoard.vue#L37
Owner
cf02d3a0ea50c123cfed83a1f619115d17ddabac
Author
Owner

Clicking on the victory or lose screen should redirect the user to the lobby

Clicking on the victory or lose screen should redirect the user to the lobby
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: heronfief/front#49