Intro and Outro:Outrocards
You may wish to end your game with an outrocard – meaning, some kind of completion text, perhaps showing some endgame text, a player score, etc. The outrocard manager offers options for clearing the screen, showing information outside the main flow of text, toggling the visibility of UI elements, and prompting the user to press a key to continue.
Lost in a Sandstorm
Within a few short steps, the ravening winds have buffeted you and
blinded you and deafened you, pushed you from the relative safety of the
camel string and stripped you of any sense of direction. If you don't
rejoin the caravan quickly you will surely be lost.
* * * You have died. * * *
DesertDrifter.outrocard.set({
clear_on_continue: true,
show_statusbar_on_continue: true,
show_titlebar_on_continue: true,
show_undo: true,
show_restore: true,
show_restart: true,
show_quit: true,
text: `* * * You have died. * * *`,
});
Outrocard Properties
- text {String} The text to be printed as the body of the outrocard. This text can include inline CSS and is subject to StringArrayFunction.
- show_undo {Boolean} If set true, the outrocard will present an undo button.
- show_restore {Boolean} If set true, the outrocard will present a restore button.
- show_restart {Boolean} If set true, the outrocard will present a restart button.
- show_quit {Boolean} If set true, the outrocard will present a quit button.
- clear_on_show {Boolean} If set true, the game display will be cleared before showing the outrocard.
- clear_on_continue {Boolean} If set true, the game display will be cleared when the user selects a followup action.
- hide_statusbar {Boolean} If set true, the game's statusbar will be hidden at the outrocard.
- show_statusbar_on_continue {Boolean} If set true, the game's statusbar will be shown when the player touches a key to continue.
- hide_titlebar {Boolean} If set true, the game's titlebar will be hidden at the outrocard.
- show_titlebar_on_continue {Boolean} If set true, the game's titlebar will be shown when the player touches a key to continue.