Little design fixes

This commit is contained in:
2025-09-11 14:55:31 +02:00
parent e3da11d776
commit f8e186d16e
5 changed files with 293 additions and 7 deletions

View File

@@ -206,6 +206,13 @@
goBack(): void {
this.sendWall();
this.state = GameState.CHOOSING_QUESTION;
this.setupGoingBack();
}
setupGoingBack(): void {
this.answerIsShowing = false;
this.questionIsShowing = false;
this.pointsGivenForCurrentQuestion = false;
}
finishQuestion(): void {
@@ -216,9 +223,7 @@
) {
this.visitedQuestions[this.currentCategory].push(this.currentQuestion);
}
this.pointsGivenForCurrentQuestion = false;
this.answerIsShowing = false;
this.questionIsShowing = false;
this.setupGoingBack();
this.nextPlayer();
if (this.wallIsDone()) {
this.goToNextWall();