I think bashit is mostly complete, unless someone finds bugs.

This commit is contained in:
Storm Dragon 2014-05-05 23:43:35 -04:00
parent ed114b297b
commit 12dd76a901
2 changed files with 9 additions and 11 deletions

View File

@ -1,10 +0,0 @@
18 Storm
0 anonymous
0 anonymous
0 anonymous
0 anonymous
0 anonymous
0 anonymous
0 anonymous
0 anonymous
0 anonymous

View File

@ -38,7 +38,7 @@ if [ $newHighScore -gt 0 ] ; then
local continue="n" local continue="n"
echo "Congratulations! You beat the score at position $newHighScore!" echo "Congratulations! You beat the score at position $newHighScore!"
while [ "${continue^}" != "Y" ] ; do while [ "${continue^}" != "Y" ] ; do
read -p "Enter your name: " name read -ep "Enter your name: " name
if [ -z "$name" ] ; then if [ -z "$name" ] ; then
local name="Anonymous" local name="Anonymous"
fi fi
@ -160,6 +160,8 @@ show_instructions
read -n 1 -p "Press any key to continue. " answer read -n 1 -p "Press any key to continue. " answer
fi fi
done done
gameLoop="true"
while [ "$gameLoop" == "true" ] ; do
clear clear
select_soundpack sound select_soundpack sound
speed="1.50" speed="1.50"
@ -229,4 +231,10 @@ echo
echo "Score: $score." echo "Score: $score."
high_score $score high_score $score
show_scoreboard show_scoreboard
read -n 1 -p "Play again? " answer
echo
if [ "${answer^}" != "Y" ] ; then
gameLoop="false"
fi
done
exit 0 exit 0