forked from STI/Astroport.ONE
53 lines
1.3 KiB
Bash
Executable File
53 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
clear
|
|
|
|
# This is a repeat of the opening room in the start.sh file - if the player
|
|
# wants to go back to the main room, this saves going through the whole
|
|
# start script over again.
|
|
|
|
# Initialise the Title Art
|
|
file1="../art/titleart.ben"
|
|
while IFS= read -r line
|
|
do
|
|
echo "$line"
|
|
done <"$file1"
|
|
echo
|
|
|
|
# Shakesphere wrote this, honest.
|
|
sleep 1
|
|
echo "Vous êtes de retour à votre point de départ."
|
|
echo "La forêt qui vous entoure est immense."
|
|
echo "Vous ne pouvez pas vraiment en imaginer la taille,"
|
|
echo
|
|
echo "Vous pouvez vous diriger au nord, à l'est, au sud, à l'ouest, au nord ouest, au nord est, au sud ouest et au sud est."
|
|
echo
|
|
echo "Que voulez-vous faire ?"
|
|
|
|
# And the room logic once again.
|
|
while true; do
|
|
read -p "> " nsewuh
|
|
case $nsewuh in
|
|
n ) ./white.sh
|
|
exit ;;
|
|
s ) ./brown.sh
|
|
exit ;;
|
|
e ) ./red.sh
|
|
exit ;;
|
|
w ) ./green.sh
|
|
exit ;;
|
|
nw ) ./purple.sh
|
|
exit ;;
|
|
ne ) ./yellow.sh
|
|
exit ;;
|
|
sw ) ./black.sh
|
|
exit ;;
|
|
|
|
u ) echo "Il n'y a rien que vous puissiez utiliser ici." ;;
|
|
h ) echo "Vous observez votre montre, il est 10:00" ;;
|
|
* ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, nw, ne, sw, se, u et h..";;
|
|
esac
|
|
done
|
|
|
|
esac
|
|
exit
|