Interactive prompt for online mode
Deploy game to server / deploy (push) Successful in 6s

This commit is contained in:
adam committed 2025-02-10 13:05:06 +00:00
1 parent c530058c9b
commit e6b5a3da7a
1 file changed
+24 -1
+24 -1
View File
@@ -80,7 +80,7 @@ function set_options() {
declare -g KEYBOARD=1 declare -g KEYBOARD=1
declare -g ONLINE=0 declare -g ONLINE=0
while getopts "bw:HSkdh" OPT; do while getopts "bw:HSkodh" OPT; do
case "${OPT}" in case "${OPT}" in
b) b)
BORDER=0 BORDER=0
@@ -103,6 +103,29 @@ function set_options() {
k) k)
KEYBOARD=0 KEYBOARD=0
;; ;;
o)
ONLINE=1
echo -en "${CLEAR_SCREEN}"
declare -g USER
read -r -p "Username: " USER
declare HM
read -r -p "Do you want to enable hard mode [y/N]? " -n 1 HM
if [[ "${HM}" =~ ^[Yy]$ ]]; then
HARD_MODE=1
declare SHM
echo -en "${NEWLINE}"
read -r -p "Do you want to enable strict hard mode [y/N]? " -n 1 HM
[[ "${HM}" =~ ^[Yy]$ ]] && STRICT_HARD_MODE=1
fi
;;
d) d)
DELAY=0 DELAY=0
;; ;;