Game assessments state refreshes #1891
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
NOTE: Please do not merge this till the Rook PR #1878 has been reviewed and merged
This PR introduces ways to update the game when student missions are updated, without having to refresh/navigate away from game.
Features:
Back
button in theGo to My Room
sceneRefresh
button in theGo to My Room
scene that fetches and updates student code, before restarting the sceneupdate_assessment_status
action for txt files that updates the game's userstate.assessmentsgoto 2
goto 2 if !userstate.assessments.173
goto 2 if !userstate.assessments.173 else 3
Below is an example dialogue that uses the
update_assessment_status
action and conditional gotos:Type of change
How to test
Replace
public/asssets/mockChapter0.txt
with the txt file below, replacing instances of 173 with the mission id of interest.mockChapter0.txt
Run the
Spaceship Emergency
chapter underPlay Chapter
, and navigate to assessment when prompted. Try proceeding with the dialogue before/after finalizing your mission submission.Checklist