Stay on reason screen
This commit is contained in:
parent
a7e37024f5
commit
3e7b89bcad
3 changed files with 28 additions and 8 deletions
|
|
@ -241,7 +241,11 @@ export const useGame = () => {
|
|||
if (timerRef.current) clearInterval(timerRef.current);
|
||||
setGameState('REVEAL');
|
||||
broadcast({ type: 'TIME_UP', payload: {} });
|
||||
setTimeout(() => setGameState('SCOREBOARD'), 4000);
|
||||
};
|
||||
|
||||
const showScoreboard = () => {
|
||||
setGameState('SCOREBOARD');
|
||||
broadcast({ type: 'SHOW_SCOREBOARD', payload: { players: playersRef.current } });
|
||||
};
|
||||
|
||||
const nextQuestion = () => {
|
||||
|
|
@ -391,6 +395,6 @@ export const useGame = () => {
|
|||
return {
|
||||
role, gameState, quiz, players, currentQuestionIndex, timeLeft, error, gamePin, hasAnswered, lastPointsEarned, currentCorrectShape, selectedOption, currentPlayerScore, currentStreak, currentPlayerId,
|
||||
pendingQuizToSave, dismissSavePrompt,
|
||||
startQuizGen, startManualCreation, finalizeManualQuiz, loadSavedQuiz, joinGame, startGame: startHostGame, handleAnswer, nextQuestion
|
||||
startQuizGen, startManualCreation, finalizeManualQuiz, loadSavedQuiz, joinGame, startGame: startHostGame, handleAnswer, nextQuestion, showScoreboard
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue