move scripts to directories
This commit is contained in:
parent
0c6e078a37
commit
873ecd1d6c
@ -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"
|
@ -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"
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
8
game.sh
8
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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user