Skip to content

Instantly share code, notes, and snippets.

@Sean-Spallen
Created November 12, 2019 14:13
Show Gist options
  • Save Sean-Spallen/54dd2a4b893d559d5239ce9fac236725 to your computer and use it in GitHub Desktop.
Save Sean-Spallen/54dd2a4b893d559d5239ce9fac236725 to your computer and use it in GitHub Desktop.
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();
}
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