diff --git a/death.sh b/actions/death.sh similarity index 95% rename from death.sh rename to actions/death.sh index d4f6035..baa9115 100644 --- a/death.sh +++ b/actions/death.sh @@ -1,7 +1,8 @@ #!/bin/bash image='trollface.png' -source 'colors.sh' +source 'utils/colors.sh' + prompt="$(redprint " ▓██ ██▓ ▒█████ █ ██ ██░ ██ ▄▄▄ ██▒ █▓▓█████ ▓█████▄ ██▓▓█████ ▓█████▄ ▐██▌ @@ -18,7 +19,7 @@ prompt="$(redprint " ")" choice1="exit" -outcome1="menu start.sh" +outcome1="menu actions/start.sh" choice2="don't exit" -outcome2="source youwin.sh" +outcome2="source actions/youwin.sh" diff --git a/explode.sh b/actions/explode.sh similarity index 62% rename from explode.sh rename to actions/explode.sh index 0e6b6f4..22ca149 100644 --- a/explode.sh +++ b/actions/explode.sh @@ -5,7 +5,7 @@ image='bomb.jpg' prompt="It was from Ted Kaczynski." choice1="Touch grass." -outcome1="source youwin.sh" +outcome1="source actions/youwin.sh" choice2="Become a terrorist." -outcome2="source youwin.sh" +outcome2="source actions/youwin.sh" diff --git a/mail.sh b/actions/mail.sh similarity index 56% rename from mail.sh rename to actions/mail.sh index 5d7154f..029d6a5 100644 --- a/mail.sh +++ b/actions/mail.sh @@ -5,9 +5,9 @@ image='mail.jpg' prompt="You've got mail!" choice1="Open" -outcome1="menu explode.sh" +outcome1="menu actions/explode.sh" choice2="Ignore" -outcome2="source youwin.sh" +outcome2="source actions/youwin.sh" diff --git a/riot.sh b/actions/riot.sh similarity index 67% rename from riot.sh rename to actions/riot.sh index 2da5f0d..a669c90 100644 --- a/riot.sh +++ b/actions/riot.sh @@ -5,8 +5,8 @@ image="riot.jpg" prompt="Holy shit now you're in a riot!" choice1="Panic and run away!" -outcome1="menu death.sh" +outcome1="menu actions/death.sh" choice2="Throw a molotov at the police" -outcome2="source youwin.sh" +outcome2="source actions/youwin.sh" diff --git a/start.sh b/actions/start.sh similarity index 53% rename from start.sh rename to actions/start.sh index e62ec45..3263c43 100644 --- a/start.sh +++ b/actions/start.sh @@ -2,12 +2,12 @@ image='house.jpg' -prompt="You are standing in an open field west of a white house, with a boarded front door. There is a small mailbox here. What do you do?" +prompt="You are standing in an open field west of a white house, with a boarded front door. There is a small mailbox here." choice1="Inventory" -outcome1="menu riot.sh" +outcome1="menu actions/riot.sh" choice2="Open Mailbox" -outcome2="menu mail.sh" +outcome2="menu actions/mail.sh" diff --git a/youwin.sh b/actions/youwin.sh similarity index 100% rename from youwin.sh rename to actions/youwin.sh diff --git a/game.sh b/game.sh index 5057d92..621c38a 100755 --- a/game.sh +++ b/game.sh @@ -1,15 +1,15 @@ #!/bin/bash -source 'menu.sh' +source 'utils/menu.sh' run_game() { if [[ $# -eq 0 ]] ; then - bash 'intro.sh' + bash 'utils/intro.sh' sleep 1 - menu 'start.sh' + menu 'actions/start.sh' else - menu '$1' + menu 'actions/$1' fi diff --git a/colors.sh b/utils/colors.sh similarity index 100% rename from colors.sh rename to utils/colors.sh diff --git a/intro.sh b/utils/intro.sh similarity index 96% rename from intro.sh rename to utils/intro.sh index 2dbd327..9483eb1 100644 --- a/intro.sh +++ b/utils/intro.sh @@ -1,6 +1,6 @@ -source './colors.sh' -source './menu.sh' -source 'print_img.sh' +source 'utils/colors.sh' +source 'utils/menu.sh' +source 'utils/print_img.sh' clear diff --git a/menu.sh b/utils/menu.sh similarity index 93% rename from menu.sh rename to utils/menu.sh index e44cc10..5726efe 100644 --- a/menu.sh +++ b/utils/menu.sh @@ -1,6 +1,6 @@ #!/bin/bash # todo: why /usr/bin/env bash vs /bin/bash? -source "./print_img.sh" +source "utils/print_img.sh" menu() { clear diff --git a/print_img.sh b/utils/print_img.sh similarity index 100% rename from print_img.sh rename to utils/print_img.sh