move scripts to directories

This commit is contained in:
creativenothing 2022-08-14 19:00:17 +00:00
parent 0c6e078a37
commit 873ecd1d6c
11 changed files with 21 additions and 20 deletions

View File

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
image='trollface.png' image='trollface.png'
source 'colors.sh' source 'utils/colors.sh'
prompt="$(redprint " prompt="$(redprint "
▓██ ██▓ ▒█████ █ ██ ██░ ██ ▄▄▄ ██▒ █▓▓█████ ▓█████▄ ██▓▓█████ ▓█████▄ ▐██▌ ▓██ ██▓ ▒█████ █ ██ ██░ ██ ▄▄▄ ██▒ █▓▓█████ ▓█████▄ ██▓▓█████ ▓█████▄ ▐██▌
@ -18,7 +19,7 @@ prompt="$(redprint "
")" ")"
choice1="exit" choice1="exit"
outcome1="menu start.sh" outcome1="menu actions/start.sh"
choice2="don't exit" choice2="don't exit"
outcome2="source youwin.sh" outcome2="source actions/youwin.sh"

View File

@ -5,7 +5,7 @@ image='bomb.jpg'
prompt="It was from Ted Kaczynski." prompt="It was from Ted Kaczynski."
choice1="Touch grass." choice1="Touch grass."
outcome1="source youwin.sh" outcome1="source actions/youwin.sh"
choice2="Become a terrorist." choice2="Become a terrorist."
outcome2="source youwin.sh" outcome2="source actions/youwin.sh"

View File

@ -5,9 +5,9 @@ image='mail.jpg'
prompt="You've got mail!" prompt="You've got mail!"
choice1="Open" choice1="Open"
outcome1="menu explode.sh" outcome1="menu actions/explode.sh"
choice2="Ignore" choice2="Ignore"
outcome2="source youwin.sh" outcome2="source actions/youwin.sh"

View File

@ -5,8 +5,8 @@ image="riot.jpg"
prompt="Holy shit now you're in a riot!" prompt="Holy shit now you're in a riot!"
choice1="Panic and run away!" choice1="Panic and run away!"
outcome1="menu death.sh" outcome1="menu actions/death.sh"
choice2="Throw a molotov at the police" choice2="Throw a molotov at the police"
outcome2="source youwin.sh" outcome2="source actions/youwin.sh"

View File

@ -2,12 +2,12 @@
image='house.jpg' 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" choice1="Inventory"
outcome1="menu riot.sh" outcome1="menu actions/riot.sh"
choice2="Open Mailbox" choice2="Open Mailbox"
outcome2="menu mail.sh" outcome2="menu actions/mail.sh"

View File

@ -1,15 +1,15 @@
#!/bin/bash #!/bin/bash
source 'menu.sh' source 'utils/menu.sh'
run_game() { run_game() {
if [[ $# -eq 0 ]] ; then if [[ $# -eq 0 ]] ; then
bash 'intro.sh' bash 'utils/intro.sh'
sleep 1 sleep 1
menu 'start.sh' menu 'actions/start.sh'
else else
menu '$1' menu 'actions/$1'
fi fi

View File

@ -1,6 +1,6 @@
source './colors.sh' source 'utils/colors.sh'
source './menu.sh' source 'utils/menu.sh'
source 'print_img.sh' source 'utils/print_img.sh'
clear clear

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# todo: why /usr/bin/env bash vs /bin/bash? # todo: why /usr/bin/env bash vs /bin/bash?
source "./print_img.sh" source "utils/print_img.sh"
menu() { menu() {
clear clear