From c5e031c02b1a9741cb0fe4fec5be31ef21cb922a Mon Sep 17 00:00:00 2001 From: Ant0n10x78 Date: Mon, 5 Feb 2024 11:57:02 +0100 Subject: [PATCH 1/3] update --- adventure/games/votrejeu/adventure.sh | 49 +++++++++++++++++++ adventure/games/votrejeu/logic/leverlogic.ben | 2 +- adventure/games/votrejeu/rooms/brown.sh | 2 +- adventure/games/votrejeu/rooms/valhalla.sh | 40 +++++++++++++++ adventure/games/votrejeu/rooms/white.sh | 6 ++- 5 files changed, 96 insertions(+), 3 deletions(-) create mode 100755 adventure/games/votrejeu/adventure.sh create mode 100755 adventure/games/votrejeu/rooms/valhalla.sh diff --git a/adventure/games/votrejeu/adventure.sh b/adventure/games/votrejeu/adventure.sh new file mode 100755 index 00000000..13dadcec --- /dev/null +++ b/adventure/games/votrejeu/adventure.sh @@ -0,0 +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 +./start.sh +################################################################### +if hash uuidgen 2>/dev/null; then + cd "$homefolder" + rm -r $HOME/.zen/adventure/$newplayer +fi +echo "To continue..." +exit diff --git a/adventure/games/votrejeu/logic/leverlogic.ben b/adventure/games/votrejeu/logic/leverlogic.ben index cfb931e4..b3d86404 100755 --- a/adventure/games/votrejeu/logic/leverlogic.ben +++ b/adventure/games/votrejeu/logic/leverlogic.ben @@ -1 +1 @@ -off +on diff --git a/adventure/games/votrejeu/rooms/brown.sh b/adventure/games/votrejeu/rooms/brown.sh index 673e5d43..08ab556a 100755 --- a/adventure/games/votrejeu/rooms/brown.sh +++ b/adventure/games/votrejeu/rooms/brown.sh @@ -39,7 +39,7 @@ while true; do case $nsewuh in n ) ./mainroom.sh exit ;; - s ) echo "Si vous continuez à marcher dans la forêt. Vous allez vous perdre. Demi tour." ;; + s ) echo "Si vous continuez à marcher dans la forêt. Vous allez vous perdre..." ;; e ) echo "Le chemin qui part à l'Est est plein de boue... Impossble d'aller par là." ;; w ) echo "Une rivière vous empêche de passer." ;; u ) leverstate=`cat ../logic/leverlogic.ben` diff --git a/adventure/games/votrejeu/rooms/valhalla.sh b/adventure/games/votrejeu/rooms/valhalla.sh new file mode 100755 index 00000000..4a9c7b4a --- /dev/null +++ b/adventure/games/votrejeu/rooms/valhalla.sh @@ -0,0 +1,40 @@ +#!/bin/bash +MY_PATH="`dirname \"$0\"`" # relative +MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +ME="${0##*/}" + +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +echo "Bienvenue dans la quête du Valhalla" +sleep 1 +echo "Vous vous tenez devant les portes massives du Valhalla, le grand hall où" +echo "les guerriers les plus valeureux reposent en paix, attendant Ragnarök." +echo "Quelle action souhaitez-vous entreprendre? " +while true; do + read -p "> " action + case $action in + n ) echo "Vous avancez vers le nord, à travers les brumes épaisses, cherchant l'entrée." + sleep 2 + echo "Vous êtes monter trop haut au nord, vous vous retrouvez au valhalla ... " + sleep 1 + echo "Les dieux chuchotent ... Pour sortir du Valhalla : ctrl+shift+$ et quit" + sleep 3 + telnet valhalla.com 4242 + echo "Vous tombez du Valhalla et retourner au point de départ" + sleep 4 + ./start.sh;; + s ) echo "Au sud s'étend la vaste plaine de Vigrid, où la bataille finale est destinée à se dérouler." ;; + e ) echo "À l'est, vous trouvez un ancien ruisseau dont les eaux murmurent des histoires des temps passés." ;; + w ) echo "À l'ouest, se dressent les montagnes, où les géants se cachent, préparant leur assaut contre les dieux." ;; + o ) echo "Vous offrez une prière aux dieux, espérant gagner leur faveur pour entrer dans le Valhalla." ;; + c ) echo "Vous criez un défi à l'adresse des ennemis invisibles, prouvant votre courage." ;; + * ) echo "Les actions possibles sont : n (nord), s (sud), e (est), w (ouest), o (offrir une prière), c (crier un défi)." ;; + esac +done \ No newline at end of file diff --git a/adventure/games/votrejeu/rooms/white.sh b/adventure/games/votrejeu/rooms/white.sh index 5c048d08..c1343483 100755 --- a/adventure/games/votrejeu/rooms/white.sh +++ b/adventure/games/votrejeu/rooms/white.sh @@ -37,7 +37,11 @@ echo "Que voulez-vous faire ?" while true; do read -p "> " nsewuh case $nsewuh in - n ) echo "Vous vous aventurez dans la forêt plus au nord. Sans boussole, vous allez vous perdre rapidement... " ;; + n ) echo "Vous vous aventurez dans la forêt plus au nord. Sans boussole, vous allez vous perdre rapidement... " + sleep 3 + echo "Vous vous êtes perdu... Au loin vous voyez le Valhalla" + ./valhalla.sh;; + s ) ./mainroom.sh exit ;; e ) echo "Une corniche surplombe un ruisseau qui coule dans le fond de la ravine. Impossible de passer sans équipement" ;; From 924baa11ae2795ca3b914bad213b42929ae1e0bb Mon Sep 17 00:00:00 2001 From: Ant0n10x78 Date: Mon, 5 Feb 2024 14:57:17 +0100 Subject: [PATCH 2/3] update Antonio --- adventure/games/votrejeu/note | 2 ++ adventure/games/votrejeu/rooms/valhalla.sh | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 adventure/games/votrejeu/note diff --git a/adventure/games/votrejeu/note b/adventure/games/votrejeu/note new file mode 100644 index 00000000..75754038 --- /dev/null +++ b/adventure/games/votrejeu/note @@ -0,0 +1,2 @@ + +Pour voir les nouvelles fonctionnalités il faut monter tout au nord et rejoindre le Valhalla. \ No newline at end of file diff --git a/adventure/games/votrejeu/rooms/valhalla.sh b/adventure/games/votrejeu/rooms/valhalla.sh index 4a9c7b4a..7ef42166 100755 --- a/adventure/games/votrejeu/rooms/valhalla.sh +++ b/adventure/games/votrejeu/rooms/valhalla.sh @@ -34,7 +34,12 @@ while true; do e ) echo "À l'est, vous trouvez un ancien ruisseau dont les eaux murmurent des histoires des temps passés." ;; w ) echo "À l'ouest, se dressent les montagnes, où les géants se cachent, préparant leur assaut contre les dieux." ;; o ) echo "Vous offrez une prière aux dieux, espérant gagner leur faveur pour entrer dans le Valhalla." ;; - c ) echo "Vous criez un défi à l'adresse des ennemis invisibles, prouvant votre courage." ;; + c ) echo "Loki s'est emparer de votre ordinateur, fuyez pauvre fou !!!!!." + image_url="https://ia904505.us.archive.org/9/items/download-5_20210715/download%20%285%29.jpeg" + image_path="./download (5).jpeg" + wget "$image_path" + gsettings set org.gnome.desktop.background picture-uri "$image_path" + echo "Le fond d'écran a été changé avec succès.";; * ) echo "Les actions possibles sont : n (nord), s (sud), e (est), w (ouest), o (offrir une prière), c (crier un défi)." ;; esac done \ No newline at end of file From f25c1d03d1d30d871faea159974acc92a3f0cdcd Mon Sep 17 00:00:00 2001 From: Ant0n10x78 Date: Thu, 22 Feb 2024 14:42:02 +0100 Subject: [PATCH 3/3] change directory name --- .../{votrejeu => antonio.gernacaleixo@ynov.com}/adventure.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/Gune.ben | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/astrologo.ben | 0 .../art/astroportland.ben | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/astrored.ben | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/bigfinish.ben | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/logoastro.ben | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/supper.ben | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/art/titleart.ben | 0 .../logic/leverlogic.ben | 0 .../logic/stationlogic.ben | 0 adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/note | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/bigroom.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/brown.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/end.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/gameroom.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/green.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/grue.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/kroo.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/kroo2.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/magic8.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/mainroom.sh | 0 .../rooms/meteofrance.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/red.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/start.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/valhalla.sh | 0 .../{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/white.sh | 0 .../script/opening.ben | 0 28 files changed, 0 insertions(+), 0 deletions(-) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/adventure.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/Gune.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/astrologo.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/astroportland.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/astrored.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/bigfinish.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/logoastro.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/supper.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/art/titleart.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/logic/leverlogic.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/logic/stationlogic.ben (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/note (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/bigroom.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/brown.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/end.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/gameroom.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/green.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/grue.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/kroo.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/kroo2.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/magic8.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/mainroom.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/meteofrance.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/red.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/start.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/valhalla.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/rooms/white.sh (100%) rename adventure/games/{votrejeu => antonio.gernacaleixo@ynov.com}/script/opening.ben (100%) diff --git a/adventure/games/votrejeu/adventure.sh b/adventure/games/antonio.gernacaleixo@ynov.com/adventure.sh similarity index 100% rename from adventure/games/votrejeu/adventure.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/adventure.sh diff --git a/adventure/games/votrejeu/art/Gune.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/Gune.ben similarity index 100% rename from adventure/games/votrejeu/art/Gune.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/Gune.ben diff --git a/adventure/games/votrejeu/art/astrologo.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/astrologo.ben similarity index 100% rename from adventure/games/votrejeu/art/astrologo.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/astrologo.ben diff --git a/adventure/games/votrejeu/art/astroportland.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/astroportland.ben similarity index 100% rename from adventure/games/votrejeu/art/astroportland.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/astroportland.ben diff --git a/adventure/games/votrejeu/art/astrored.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/astrored.ben similarity index 100% rename from adventure/games/votrejeu/art/astrored.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/astrored.ben diff --git a/adventure/games/votrejeu/art/bigfinish.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/bigfinish.ben similarity index 100% rename from adventure/games/votrejeu/art/bigfinish.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/bigfinish.ben diff --git a/adventure/games/votrejeu/art/logoastro.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/logoastro.ben similarity index 100% rename from adventure/games/votrejeu/art/logoastro.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/logoastro.ben diff --git a/adventure/games/votrejeu/art/supper.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/supper.ben similarity index 100% rename from adventure/games/votrejeu/art/supper.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/supper.ben diff --git a/adventure/games/votrejeu/art/titleart.ben b/adventure/games/antonio.gernacaleixo@ynov.com/art/titleart.ben similarity index 100% rename from adventure/games/votrejeu/art/titleart.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/art/titleart.ben diff --git a/adventure/games/votrejeu/logic/leverlogic.ben b/adventure/games/antonio.gernacaleixo@ynov.com/logic/leverlogic.ben similarity index 100% rename from adventure/games/votrejeu/logic/leverlogic.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/logic/leverlogic.ben diff --git a/adventure/games/votrejeu/logic/stationlogic.ben b/adventure/games/antonio.gernacaleixo@ynov.com/logic/stationlogic.ben similarity index 100% rename from adventure/games/votrejeu/logic/stationlogic.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/logic/stationlogic.ben diff --git a/adventure/games/votrejeu/note b/adventure/games/antonio.gernacaleixo@ynov.com/note similarity index 100% rename from adventure/games/votrejeu/note rename to adventure/games/antonio.gernacaleixo@ynov.com/note diff --git a/adventure/games/votrejeu/rooms/bigroom.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/bigroom.sh similarity index 100% rename from adventure/games/votrejeu/rooms/bigroom.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/bigroom.sh diff --git a/adventure/games/votrejeu/rooms/brown.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/brown.sh similarity index 100% rename from adventure/games/votrejeu/rooms/brown.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/brown.sh diff --git a/adventure/games/votrejeu/rooms/end.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/end.sh similarity index 100% rename from adventure/games/votrejeu/rooms/end.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/end.sh diff --git a/adventure/games/votrejeu/rooms/gameroom.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/gameroom.sh similarity index 100% rename from adventure/games/votrejeu/rooms/gameroom.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/gameroom.sh diff --git a/adventure/games/votrejeu/rooms/green.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/green.sh similarity index 100% rename from adventure/games/votrejeu/rooms/green.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/green.sh diff --git a/adventure/games/votrejeu/rooms/grue.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/grue.sh similarity index 100% rename from adventure/games/votrejeu/rooms/grue.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/grue.sh diff --git a/adventure/games/votrejeu/rooms/kroo.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/kroo.sh similarity index 100% rename from adventure/games/votrejeu/rooms/kroo.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/kroo.sh diff --git a/adventure/games/votrejeu/rooms/kroo2.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/kroo2.sh similarity index 100% rename from adventure/games/votrejeu/rooms/kroo2.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/kroo2.sh diff --git a/adventure/games/votrejeu/rooms/magic8.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/magic8.sh similarity index 100% rename from adventure/games/votrejeu/rooms/magic8.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/magic8.sh diff --git a/adventure/games/votrejeu/rooms/mainroom.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/mainroom.sh similarity index 100% rename from adventure/games/votrejeu/rooms/mainroom.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/mainroom.sh diff --git a/adventure/games/votrejeu/rooms/meteofrance.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/meteofrance.sh similarity index 100% rename from adventure/games/votrejeu/rooms/meteofrance.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/meteofrance.sh diff --git a/adventure/games/votrejeu/rooms/red.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/red.sh similarity index 100% rename from adventure/games/votrejeu/rooms/red.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/red.sh diff --git a/adventure/games/votrejeu/rooms/start.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/start.sh similarity index 100% rename from adventure/games/votrejeu/rooms/start.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/start.sh diff --git a/adventure/games/votrejeu/rooms/valhalla.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/valhalla.sh similarity index 100% rename from adventure/games/votrejeu/rooms/valhalla.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/valhalla.sh diff --git a/adventure/games/votrejeu/rooms/white.sh b/adventure/games/antonio.gernacaleixo@ynov.com/rooms/white.sh similarity index 100% rename from adventure/games/votrejeu/rooms/white.sh rename to adventure/games/antonio.gernacaleixo@ynov.com/rooms/white.sh diff --git a/adventure/games/votrejeu/script/opening.ben b/adventure/games/antonio.gernacaleixo@ynov.com/script/opening.ben similarity index 100% rename from adventure/games/votrejeu/script/opening.ben rename to adventure/games/antonio.gernacaleixo@ynov.com/script/opening.ben