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
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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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