-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Game: Create a new quiz feature (#2919)
* Add new action show_quiz * Add quiz parser * Add quiz manager * Create quiz result type * Hide dialogue box while showing quiz * Modify character hidding feature * Track and display quiz results * Debugging for speaker displaying * Modify UI for quiz displaying * Update UI for quiz display * Solve quiz speaker issue * Remove default reaction in QuizParser and handle no reaction situation in QuizManager * Add a new property (boolean array) in Quiz type to record quiz result * Rearrange quiz result * Save quiz status as attempted/completed arrays * Add conditions to check whether a quiz is attempted/completed * Disable keyboard input in a quiz * Move question prompt text to QuizConstants * QuizParser error handling & add new "speaker" property to QuizType & store quiz questions to dialogue log * Display quiz result message to dialogue log * Move quiz result message to QuizConstant * Change quiz condition names * Add a prompt before a quiz & proceed to the next dialogue line when a quiz ends * Add saving quizzes score * Add validation for quiz conditions parameters * Add new condition quizScoreAtLeast to check the status of quiz scores * Support Interpolation of player's name in quiz questions * Support interpolation of quiz scores in dialogue lines * Refactor the logic of makeLineQuizScores method Co-authored-by: reginateh <e1312290@u.nus.edu> Co-authored-by: CZX <CZX123@users.noreply.github.com>
- Loading branch information
1 parent
5b54dc1
commit dfe3114
Showing
27 changed files
with
910 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.