Skip to content

Commit

Permalink
feat: add ability to quit from the start menu
Browse files Browse the repository at this point in the history
  • Loading branch information
daelsepara committed Feb 12, 2024
1 parent 8d6ee95 commit cedc71f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/gamebook.zil
Original file line number Diff line number Diff line change
Expand Up @@ -1391,10 +1391,14 @@
<TELL "R">
<HLIGHT 0>
<TELL " - Restore from previous save" CR>
<HLIGHT ,H-BOLD>
<TELL "Q">
<HLIGHT 0>
<TELL " - Quit the game" CR>
<TELL "Select which character?">
<REPEAT ()
<SET KEY <INPUT 1>>
<COND (<OR <AND <G=? .KEY !\1> <L=? .KEY !\9> <L=? <- .KEY !\0> .COUNT>> <EQUAL? .KEY !\C !\c> <EQUAL? .KEY !\R !\r>> <RETURN>)>
<COND (<OR <AND <G=? .KEY !\1> <L=? .KEY !\9> <L=? <- .KEY !\0> .COUNT>> <EQUAL? .KEY !\C !\c> <EQUAL? .KEY !\R !\r> <EQUAL? .KEY !\Q !\q>> <RETURN>)>
>
<COND (<AND <G=? .KEY !\1> <L=? .KEY !\9>>
<SET CHOICE <- .KEY !\0>>
Expand Down Expand Up @@ -1439,6 +1443,10 @@
<TELL CR "[Press a key to begin]" CR>
<INPUT 1>
<RETURN>
)(<EQUAL? .KEY !\Q !\q>
<CRLF>
<TELL "Are you sure you want to quit the game?">
<COND(<YES?> <QUIT-MSG>)>
)(<EQUAL? .KEY !\R !\r>
<COND (<NOT <RESTORE>>
<EMPHASIZE "Restore failed.">
Expand Down
2 changes: 1 addition & 1 deletion src/greenblood.zil
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<CONSTANT GAME-TITLE "||Green Blood">
<CONSTANT GAME-DESCRIPTION "|Mark Smith and Dave Morris (1993)||Implemented in ZIL by SD Separa (2020)|">
<CONSTANT RELEASEID 4>
<CONSTANT RELEASEID 5>
<CONSTANT IFID "E46D8D1A-2F4A-4665-BC81-0894C2E4DA9D">
<VERSION XZIP>

Expand Down

0 comments on commit cedc71f

Please sign in to comment.