Repository navigation
Game assessments state refreshes - #1891
Merged
Merged
Conversation
anthony-halim
approved these changes
Aug 3, 2021
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Backbutton in theGo to My RoomsceneRefreshbutton in theGo to My Roomscene that fetches and updates student code, before restarting the sceneupdate_assessment_statusaction for txt files that updates the game's userstate.assessmentsgoto 2goto 2 if !userstate.assessments.173goto 2 if !userstate.assessments.173 else 3Below is an example dialogue that uses the
update_assessment_statusaction and conditional gotos:Type of change
How to test
Replace
public/asssets/mockChapter0.txtwith the txt file below, replacing instances of 173 with the mission id of interest.mockChapter0.txt
Run the
Spaceship Emergencychapter underPlay Chapter, and navigate to assessment when prompted. Try proceeding with the dialogue before/after finalizing your mission submission.Checklist