Created
November 12, 2019 14:13
-
-
Save Sean-Spallen/54dd2a4b893d559d5239ce9fac236725 to your computer and use it in GitHub Desktop.
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
if (stage == STAGE_ID) { | |
// UPDATE STYLE | |
updateBackground(COLOUR); | |
updateBorder(COLOUR); | |
CLEAR CONTENT & NARRATIVE | |
resetContent(); | |
// RANDOM EVENT - Injured? | |
randomFate(); | |
if( fate > 33 ) { | |
// DO SOMETHING | |
} else { | |
// DO SOMETHING ELSE | |
} | |
// UPDATE PLAYER & OPTIONS AFTER NARRATIVE | |
assessPlayerDamage(); | |
updateNarrative(); | |
updateOptions(); | |
} |
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
if (stage == STAGE_ID) { | |
// UPDATE STYLE | |
updateBackground(COLOUR); | |
updateBorder(COLOUR); | |
CLEAR CONTENT & NARRATIVE | |
resetContent(); | |
NARRATIVE | |
narrativeParagraph(STEP_ID, TEXT) | |
narrativeBold(STEP_ID, TEXT) | |
// UPDATE PLAYER & OPTIONS AFTER NARRATIVE | |
assessPlayerDamage(); | |
updateNarrative(); | |
updateOptions(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment