From b0cf82581392ba6844d00f062461bb79f90b58c5 Mon Sep 17 00:00:00 2001 From: Jonio <71132109+JonioDiPonio@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:26:09 +0100 Subject: [PATCH] Add files via upload --- adventure/adventure.sh | 98 +++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/adventure/adventure.sh b/adventure/adventure.sh index 0ab10c14..d27f1298 100755 --- a/adventure/adventure.sh +++ b/adventure/adventure.sh @@ -1,49 +1,49 @@ -#!/bin/bash -################################################################### -# This Launch script is based on BashVenture. -# -# Remember, kids - sharing is caring! Keep it open. Spread the love. -# - @BenNunney -# Thanks and gratitude to all living creatures and the whole creation. -# - @Fred -# $AGE×365,25×24×60×60×9,807÷299792458 = RELATIVE LIGHT GRAVITY SPEED -################################################################### -# Guide avancé d'écriture des scripts Bash : https://abs.traduc.org/abs-fr/ -# GAMESHELL : https://github.com/phyver/GameShell/ -################################################################### -MY_PATH="`dirname \"$0\"`" # relative -MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized -ME="${0##*/}" -################################################################### -### CREER VOTRE PROPRE VERSION DU JEU -### CHOISIR SCENARIO - -################################################################### -if hash uuidgen 2>/dev/null; then - homefolder=$(pwd) - newplayer=$(uuidgen) - ## Copy Player Game Files - mkdir -p $HOME/.zen/adventure/$newplayer - cp -r $MY_PATH/rooms $HOME/.zen/adventure/$newplayer/rooms - cp -r $MY_PATH/art $HOME/.zen/adventure/$newplayer/art - cp -r $MY_PATH/script $HOME/.zen/adventure/$newplayer/script - cp -r $MY_PATH/logic $HOME/.zen/adventure/$newplayer/logic -fi -################################################################### -echo "Loading..." -echo -sleep 4 -################################################################### -if hash uuidgen 2>/dev/null; then - cd $HOME/.zen/adventure/$newplayer/rooms -else - cd rooms -fi -./end.sh -################################################################### -if hash uuidgen 2>/dev/null; then - cd "$homefolder" - rm -r $HOME/.zen/adventure/$newplayer -fi -echo "To continue..." -exit +#!/bin/bash +################################################################### +# This Launch script is based on BashVenture. +# +# Remember, kids - sharing is caring! Keep it open. Spread the love. +# - @BenNunney +# Thanks and gratitude to all living creatures and the whole creation. +# - @Fred +# $AGE×365,25×24×60×60×9,807÷299792458 = RELATIVE LIGHT GRAVITY SPEED +################################################################### +# Guide avancé d'écriture des scripts Bash : https://abs.traduc.org/abs-fr/ +# GAMESHELL : https://github.com/phyver/GameShell/ +################################################################### +MY_PATH="`dirname \"$0\"`" # relative +MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +ME="${0##*/}" +################################################################### +### CREER VOTRE PROPRE VERSION DU JEU +### CHOISIR SCENARIO + +################################################################### +if hash uuidgen 2>/dev/null; then + homefolder=$(pwd) + newplayer=$(uuidgen) + ## Copy Player Game Files + mkdir -p $HOME/.zen/adventure/$newplayer + cp -r $MY_PATH/rooms $HOME/.zen/adventure/$newplayer/rooms + cp -r $MY_PATH/art $HOME/.zen/adventure/$newplayer/art + cp -r $MY_PATH/script $HOME/.zen/adventure/$newplayer/script + cp -r $MY_PATH/logic $HOME/.zen/adventure/$newplayer/logic +fi +################################################################### +echo "Loading..." +echo +sleep 4 +################################################################### +if hash uuidgen 2>/dev/null; then + cd $HOME/.zen/adventure/$newplayer/rooms +else + cd rooms +fi +./start.sh +################################################################### +if hash uuidgen 2>/dev/null; then + cd "$homefolder" + rm -r $HOME/.zen/adventure/$newplayer +fi +echo "To continue..." +exit