From 941592ce447b4caad7f12bc5801a8a0e7d416d4a Mon Sep 17 00:00:00 2001 From: janick Date: Sun, 11 Feb 2024 14:24:40 +0100 Subject: [PATCH] update --- .../advendure_link.sh | 1 + .../janick.mourougassin@ynov.com/adventure.sh | 49 ++++++++++ .../art/titleart.ben | 30 ++++++ .../art/titleart.ben2 | 30 ++++++ .../rooms/bigroom.sh | 58 ++++++++++++ .../rooms/brown.sh | 55 +++++++++++ .../janick.mourougassin@ynov.com/rooms/end.sh | 54 +++++++++++ .../rooms/gameroom.sh | 88 ++++++++++++++++++ .../rooms/green.sh | 38 ++++++++ .../rooms/grue.sh | 75 +++++++++++++++ .../rooms/kroo.sh | 58 ++++++++++++ .../rooms/kroo2.sh | 40 ++++++++ .../rooms/lanceur.sh | 93 +++++++++++++++++++ .../rooms/magic8.sh | 29 ++++++ .../rooms/mainroom.sh | 45 +++++++++ .../rooms/meteofrance.sh | 64 +++++++++++++ .../janick.mourougassin@ynov.com/rooms/red.sh | 41 ++++++++ .../rooms/start.sh | 71 ++++++++++++++ .../rooms/white.sh | 53 +++++++++++ .../script/opening.ben | 69 ++++++++++++++ 20 files changed, 1041 insertions(+) create mode 120000 adventure/games/janick.mourougassin@ynov.com/advendure_link.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/adventure.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/art/titleart.ben create mode 100755 adventure/games/janick.mourougassin@ynov.com/art/titleart.ben2 create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/bigroom.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/brown.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/end.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/gameroom.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/green.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/grue.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/kroo.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/kroo2.sh create mode 100644 adventure/games/janick.mourougassin@ynov.com/rooms/lanceur.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/magic8.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/mainroom.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/meteofrance.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/red.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/start.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/rooms/white.sh create mode 100755 adventure/games/janick.mourougassin@ynov.com/script/opening.ben diff --git a/adventure/games/janick.mourougassin@ynov.com/advendure_link.sh b/adventure/games/janick.mourougassin@ynov.com/advendure_link.sh new file mode 120000 index 00000000..5d23d97f --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/advendure_link.sh @@ -0,0 +1 @@ +adventure.sh \ No newline at end of file diff --git a/adventure/games/janick.mourougassin@ynov.com/adventure.sh b/adventure/games/janick.mourougassin@ynov.com/adventure.sh new file mode 100755 index 00000000..13dadcec --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/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/janick.mourougassin@ynov.com/art/titleart.ben b/adventure/games/janick.mourougassin@ynov.com/art/titleart.ben new file mode 100755 index 00000000..e9d714dd --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/art/titleart.ben @@ -0,0 +1,30 @@ + ________ ________ _________ ________ ________ ________ ________ +|\ __ \|\ ____\|\___ ___\\ __ \|\ __ \|\ __ \|\ __ \ +\ \ \|\ \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ \ \|\ \ \ \|\ \ + \ \ __ \ \_____ \ \ \ \ \ \ _ _\ \ \\\ \ \ ____\ \ \\\ \ + \ \ \ \ \|____|\ \ \ \ \ \ \ \\ \\ \ \\\ \ \ \___|\ \ \\\ \ + \ \__\ \__\____\_\ \ \ \__\ \ \__\\ _\\ \_______\ \__\ \ \_______\ + \|__|\|__|\_________\ \|__| \|__|\|__|\|_______|\|__| \|_______| + \|_________| + + + ___ ___ _______ ________ ________ ___ ________ ________ +|\ \ / /|\ ___ \ |\ __ \|\ ____\|\ \|\ __ \|\ ___ \ +\ \ \ / / | \ __/|\ \ \|\ \ \ \___|\ \ \ \ \|\ \ \ \\ \ \ + \ \ \/ / / \ \ \_|/_\ \ _ _\ \_____ \ \ \ \ \\\ \ \ \\ \ \ + \ \ / / \ \ \_|\ \ \ \\ \\|____|\ \ \ \ \ \\\ \ \ \\ \ \ + \ \__/ / \ \_______\ \__\\ _\ ____\_\ \ \__\ \_______\ \__\\ \__\ + \|__|/ \|_______|\|__|\|__|\_________\|__|\|_______|\|__| \|__| + \|_________| + + + ________ ________ ___ ___ +|\ ___ \ |\_____ \|\ \ |\ \ +\ \____ \ \|___/ /\ \ \\_\ \ + \|____|\ \ / / /\ \______ \ + __\_\ \ / / / \|_____|\ \ + |\_______\/__/ / \ \__\ + \|_______||__|/ \|__| + + --- Un JEu des îles de l'Ocean Indien (974) --- + diff --git a/adventure/games/janick.mourougassin@ynov.com/art/titleart.ben2 b/adventure/games/janick.mourougassin@ynov.com/art/titleart.ben2 new file mode 100755 index 00000000..e9d714dd --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/art/titleart.ben2 @@ -0,0 +1,30 @@ + ________ ________ _________ ________ ________ ________ ________ +|\ __ \|\ ____\|\___ ___\\ __ \|\ __ \|\ __ \|\ __ \ +\ \ \|\ \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ \ \|\ \ \ \|\ \ + \ \ __ \ \_____ \ \ \ \ \ \ _ _\ \ \\\ \ \ ____\ \ \\\ \ + \ \ \ \ \|____|\ \ \ \ \ \ \ \\ \\ \ \\\ \ \ \___|\ \ \\\ \ + \ \__\ \__\____\_\ \ \ \__\ \ \__\\ _\\ \_______\ \__\ \ \_______\ + \|__|\|__|\_________\ \|__| \|__|\|__|\|_______|\|__| \|_______| + \|_________| + + + ___ ___ _______ ________ ________ ___ ________ ________ +|\ \ / /|\ ___ \ |\ __ \|\ ____\|\ \|\ __ \|\ ___ \ +\ \ \ / / | \ __/|\ \ \|\ \ \ \___|\ \ \ \ \|\ \ \ \\ \ \ + \ \ \/ / / \ \ \_|/_\ \ _ _\ \_____ \ \ \ \ \\\ \ \ \\ \ \ + \ \ / / \ \ \_|\ \ \ \\ \\|____|\ \ \ \ \ \\\ \ \ \\ \ \ + \ \__/ / \ \_______\ \__\\ _\ ____\_\ \ \__\ \_______\ \__\\ \__\ + \|__|/ \|_______|\|__|\|__|\_________\|__|\|_______|\|__| \|__| + \|_________| + + + ________ ________ ___ ___ +|\ ___ \ |\_____ \|\ \ |\ \ +\ \____ \ \|___/ /\ \ \\_\ \ + \|____|\ \ / / /\ \______ \ + __\_\ \ / / / \|_____|\ \ + |\_______\/__/ / \ \__\ + \|_______||__|/ \|__| + + --- Un JEu des îles de l'Ocean Indien (974) --- + diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/bigroom.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/bigroom.sh new file mode 100755 index 00000000..a3463cf3 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/bigroom.sh @@ -0,0 +1,58 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" + +# This is close to the endgame, but affords the player a last set of things to try and do. +# Obviously if you use this framework to create a game of your own, you can extend this massively. + +echo +sleep 1 +echo "Vous décidez de sortir de la Sation Astroport." +echo + echoleverstate=`cat ../logic/stationlogic.ben` + if [ "$leverstate" = "on" ]; then + + sleep 2 + echo "Il ne dépend que de vous d'explorer ce nouveau futur." + echo "Le Visa MadeInZion inaugure un monde sans territoire, sans frontière, transnationnal, interplanétaire, à vous de voir?" + sleep 2 + echo "Avant de nous rejoindre. Visitez notre 'bon coin' https://gchange.fr " + echo + sleep 3 + echo "Ouvrez une ambassade? Installez IPFS, devenons hébergeur, fournisseur d'accès de nos Internets." + echo + sleep 4 + echo "Ouvrez votre propriété au futur en commun, activez Astroport." + echo "Nous organisons des formations habitats posés, vissés et cousus. Eau potable. Biogaz, Marmite Norvégienne..." + echo "Comment nourrir le sol, reconnaitre les plantes... Redevenir ceuilleur, créateur." + echo + else + echo "" + echo "Aucune entrée n'est visible." + fi +echo +sleep 5 +echo +echo "Que voulez vous faire?" + +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo "Pas moyen de se déplacer." ;; + s ) echo ".Pas le choix." ;; + e ) echo "Pas par là." ;; + w ) echo "Plus à l'ouest que ça? Y'a pas!" ;; + u ) ./end.sh + exit ;; + h ) echo "Comment refuser une telle proposition..." ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, u et h..";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/brown.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/brown.sh new file mode 100755 index 00000000..30121249 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/brown.sh @@ -0,0 +1,55 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo +sleep 1 + +# Here's this room's script. + +echo "Sur la direction du sud, votre Bus vous amène à Saint Pierre." +echo "Chance pour vous, le voyage vous à couter 2€ uniquement et il vous reste 48€." +echo "En plus un deuxième Aéroport ce trouve à Saint Pierre" +echo +echo "Vous arrêter un passant pour lui demander ou aller." +echo +echo "Il vous indique que ou se trouve l'aéroport. Vous devait vous diriger vers PierreFonds." + + +# Here we tell the player whether the lever is on or off. +leverstate=`cat ../logic/leverlogic.ben` + if [ "$leverstate" = "on" ]; then + echo "'VISA SVP' clignote sur l'écran..." + else + echo "Vous avez faim" + fi +echo +echo "Plusieurs choix s'offre à vous." +echo "(n) Respawn" +echo "(e) Faire du stop" +echo "(w) Payer un taxi" +echo "(s) Prendre un autre bus" +echo +echo "Que faites vous?" + +# In this set of actons lies the logic switch used later in the game. +# You have to set this switch to reach the endgame. +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) ./mainroom.sh + exit ;; + s ) echo "Vous dépenser 2€ et le bus vous dépose à 30 min de l'aéroport ..." ;; + e ) echo "Un Réunionnais s'arrête et vous dépose à l'aéroport" ;; + w ) echo "Le taximan vous taxe tous votre argent et ne vous redépose à Saint Denis car vous ne l'avez pas indiquer la bonne aéroport" ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w ";; + esac +done + +esac +exit + diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/end.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/end.sh new file mode 100755 index 00000000..ab0d06d3 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/end.sh @@ -0,0 +1,54 @@ +#!/bin/bash +clear + +# This is the endgame. This file does nothing but give you the final bit of storyline. +# Use (over-use) of 'sleep' is for dramatic effect - play around with it, see how it reads. + +# Let's reset the lever, now that we're done with it. +sed -i='' 's/on/off/' ../logic/leverlogic.ben + +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo +sleep 1 +echo "Voici la fin de cette petite aventure." +echo +sleep 4 +echo "Vous venez de visiter la forêt où s'est posé Astroport ONE." +sleep 3 +echo +echo "MERCI" +echo +sleep 3 +echo +file1="../art/bigfinish.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo +echo +read -p "Appuyez sur [ENTER] pour terminer..." +echo +clear +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo +echo "Merci d'avoir joué le jeu" +echo "Je suis heureux de vous avoir fait partager le rêve des astronautes terraformeurs." +echo +echo "Le futur ne se prédit pas, il se construit." +echo +echo " - @Fred" +echo + +# That's all, folks! + +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/gameroom.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/gameroom.sh new file mode 100755 index 00000000..215c4191 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/gameroom.sh @@ -0,0 +1,88 @@ +#!/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 + +# This room gives the player a typical poisoned apple style scenaro. +# Just because something looks shiny and fun, doesn't make it any +# less deadly. +sleep 1 +echo "Dans une cabine, un écran est disposé en coin. Un tout petit ordinateur" +echo "y est raccordé... D'autres fils sortent de l'appareil. Une webcam. Une imprimante." +echo +echo "Que voulez vous faire?" +myIP=$(hostname -I | awk '{print $1}' | head -n 1) +isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/") +[[ ! $myIP || $isLAN ]] && myIP="127.0.1.1" + +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo "Vous êtes dans une cabine. Des QRCode sont collés à la parois nord" ;; + s ) echo "Cette paroie comporte un miroir. Pour se faire une beauté avant d'enregistrer une capsule vidéo." ;; + w ) ./kroo.sh + exit ;; + e ) echo "Vous êtes face à l'écran. Au dessus des hauts parleurs, une webcam" ;; + u ) leverstate=`cat ../logic/stationlogic.ben` + if [ "$leverstate" = "on" ]; then + echo "A chaque frappe d'une touche. l'écran fait défiler le texte 'SCANNEZ VISA SVP'." + else + sed -i='' 's/off/on/' ../logic/stationlogic.ben + echo "Vous appuyez sur l'interupteur de l'écran. Y apparaît alors :" + sleep 3 + echo "AMBASSADE MadeInZion - TerraPi4 - 2 To -" + echo "" + echo + sleep 2 + echo "INTERNET est dangereux. il vend vos information personnelles pour que vous deveniez un produit. " + sleep 2 + echo + echo "Rebootez INTERNET. Activez votre TW sur UPlanet (IPFS crypto drive) " + sleep 2 + echo + echo "On y échange en pair à pair. La monnaie y est Libre. https://qo-op.com" + sleep 4 + file1="../art/astrored.ben" + while IFS= read -r line + do + echo "$line" + done <"$file1" + echo + echo + echo "____ Astroport déclenche à 20:12 la synchronisation de ses ambassades..." + echo "Rapport 2022 : https://ipfs.asycn.io/ipfs/QmUtGpGeMZvwp47ftqebVmoFWCmvroy5wEtWsKvWvDWJpR" + sleep 3 + echo + echo "ASTROPORT ONE" + echo "VISA pour le vaisseau spatial TERRE." + if [[ -d ~/.zen/Astroport.ONE ]]; then + read -p "Appuyez sur [ENTER] pour activer votre Station Astroport.ONE" + espeak "Astroport Command" > /dev/null 2>&1 + + ~/.zen/Astroport.ONE/command.sh + else + espeak "Please Install Astroport" > /dev/null 2>&1 + echo "Install Astroport.ONE ..." + echo "bash <(wget -qO- https://raw.githubusercontent.com/papiche/Astroport.ONE/master/install.sh)" + ./end.sh + fi + fi + exit + ;; + + h ) echo "'DEMARRER API http://$myIP:1234 ... Une Station Astroport.ONE.?." ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, u et h..";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/green.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/green.sh new file mode 100755 index 00000000..25bb05e5 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/green.sh @@ -0,0 +1,38 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +# Everybody clap your hands. I mean, here is the script. +sleep 1 +echo "Une personne vous aide et vous propose de vous déposer directment à l'aéroport" +echo +echo "Vous entrez dans à l'intérieur de l'aéroport, et allez acheter un billet pour l'île Maurice." +echo " L'hotesse vous propose un billet à 79 € alors que vous n'avez que 50 €." + +echo "Que voulez vous faire?" +echo "Plusieurs choix s'offre à vous." +echo "(n) Faire le mandian" +echo "(e) Respawn" +echo "(w) Négocier" +echo "(s) Passer en force" +# And here's what you could have won... +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo "Vous récolter les sous manquants, mais la douanes vous arrêtes et vous expulse" ;; + s ) echo "La douanes vous arrêtes et vous expulse" ;; + e ) ./mainroom.sh + exit ;; + w ) echo "Elle vous propose un billet à 55€" ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w ";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/grue.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/grue.sh new file mode 100755 index 00000000..9fb09ba0 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/grue.sh @@ -0,0 +1,75 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +# I like this room. There is no way to get out of it alive. +sleep 1 + +echo" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ + $$$$$$$XXx+++++;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+++++++++++++++++++++++++++++++++++++++xxxXXX$$$$$$$$$$$ + $$$x+;;;;++++++;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;++++++++xxxx++++++++++++++++++++++++++++++++++xX$$$$$$ + $x;;;;;;++++++++++;;;;;;;;;;;;;;;;;;;;;;;+++++xXXXXXxxxx+x+++++++++++++++++++++++++++++++++++++X$$$$ + $;;;;;;;;;+++++++++;;;;;;;;;;;;;;;;;;++++++;;;;;+++xXXXxxxxx+++++++++++++++++++++++++++++++++++x$$$$ + X;;;;;;;;;;;+++++++++;;;;;;;;;;;;;+++x+;++xxxXXXX++xx++xXXXXXx++++++++++++++++++++++++++++++++++X$$$ + X;;;;;;;;;;;;;;;;;+;;;;;;++++;;;;;++++;;+++++++++++++xXXXXXXXXxxx+++++++++++++++++++++++++++++++XX$$ + X;;;;;;;;;;;;;;;;;;;+++++++;;;++++++++;;;;++++xxxxx+++xXX$$$XXXXXXXxxx++++++++++++++++++++++++++XX$$ + X;;;;;;;;;;;;;;;;;++++++++++++x+;;;++XXx+++++xxXXXXXXxxXXX$$$$$$XXXXXXxx+x++++;;++++++++++++++++XX$$ + X;;;;;;;;;;;;;;;;;;;+xxXXXxxx++++;;++xXxXx+;;;;+xXXX$XXxxxXXX$$$Xx++++x+++xxx++;;;;+;;+;;+++++++XX$$ + X;;;;;;;;;;+++x+xxxXXXXXXXxxx++;;;;;+++xx++XXXXxxxXXXX$$$$XXXXX$$$XxxXXXxxxxx++;;;;;;;;;;;;+++++XX$$ + X;;;;+;;;;;;+++xXXXXXXXXXXXXXXXxx+++++xXXXXxxxXXX$XXXXXXX$$$$$$$$$$$XxXXXXXXx+++;;;;;;;;;;;;++++XX$$ + X;;;;;+;;;;;;+++xXXXXX$$$$$XXXXXx++++++XXXX$$$$$$$$$$$$$$XX$$$$$$$$$$$$XXXXXXxx+++;;;;;;;;;;++++XX$$ + X;;;;;;;;;;;;;+xXXX$$$$$XXxx++xxXxx+++xXXX$$$$$$$$$$$$$$$$$$$$$$$$$$$$$XXXXXXXXx++++;;;;;;;+++++XXX$ + X;;:;;;++++xxxXXXXXXxxx+++++;;;;++xXXXX$X$$$$$$$$$$$$$$$$$$$$$$$$$$$$XXXXXXXXXXXXX+++;;;;;;+++++XXX$ + X;;:;:;;++xXXXXXXXXXXXXXXxxx+++++xXXXX$$$$$$$$$$$$$$$$$$$X$$$$$XXXXXXXXXXXXX$XXXXXX+++;;;;;+++++XX$$ + X;:;::;;;+xxXXXXXXXXXxxXXX$XXXXXXXXXXXXX$$$$XXXXXXXXXXXXXXXXXXXXXXXXXXXXX$$$$$XXXXXx++;;;;;+++;+XXX$ + X;:::;;+xXXXXX$$XXXXXXXX$$XXXXXXXXXXXXXXXXXXx++x++xx++xx+xxxxxxxxxXXxXXXXX$$$$XXXXXXX++;;;;;;;;+XXX$ + X++++++xXXXXXXXXXXXXXXXXXXXxxxxxxxxx++++++++;;;+++;+;;;;;+++++++++xxxxXXX$$$$$$$XXxxxx+;++;;;;;+XX$$ + X+++xxxXXXXXXXXXXXXX$XXXXXx++++++++++;;;;++;;;;;::;;;;;;;;;+;;;;+++++++XXXX$$XXXXXx++++++;;;;;;+XXX$ + X++++xXXXXXXXXXXXX$$$XX+::....:::::::::::;;;;;::::::::::::::;::::;;;;+++XX$$$$$$XXXx+++++;;+;;;+XXX$ + X+;++++xxxXXXXX$$$X;:..:;;++++;;++++++;;;::..............:::::::::::;++;:;+X$$$$XXXxx++++++;;+;+XX$$ + X++++++++xXXXX$$$$x. .:XXx++++++xxxXXXXXXxx:. ....;xXXXXXXXxx+xxxxx++;:.::+$$XXx++++++++++;+XXX$ + X;;;;+++;+xxxX$$XX+.. ;$Xx+++xxxXXXXXXXXXXX+:. ...;XXXXX$$XXXXXXXXXXXXX+:::+$$$$XXXXxxx++++;+XXX$ + X+;;;;;;;;++xXXxxXx:..;$Xx++xXXXXX$X$$$$$$Xx:.:::::.:+X$$$$$$$$$XXXXXXXXXXx:::+$$$$XXXXXx++++;;+XX$$ + X+;;;;;;;;;+++xXXXXX+.;XXx+XXXXXXXXXXXXXXXX;.:::::;:.;X$$$$$XXXXXXX$$$XXXX+..;x$$$$XXXXXx+++;;++XXX$ + X;;;;;;;;;++xXXXxxX$$;:Xx+xXxxXXXXXXXXXXx+;:.:::::;;:;XXX$$XXXXXXXXXXXXXXX;:X$$$$$$XXXXXXx++++;+XXX$ + X;;;;;;;;++xXXXXxx$&$X:;x+;;++++;;;;;;;;::::::::::;;;:;;;;;+++xxxXxx+++xx+:+$$$$$$$XXXXXXxx+++;+XX$$ + X+;++++++xxxXXXXxX$$XX+::;;;;::::::::::::.:::::::::;;;::::::;;;;;+++++xx+::X$$$$$$$$XXXxx+++++++XXX$ + X+;;+++++xxxxxXxXX$XXXx+;::::::::..::::::;;::::::::;;;;:::::::::;;;;;++;:;xX$$$$$XX$$$XXx++++;;+XXX$ + X;;;;;;++++xxxxXXXXXxx;++;;::::::;;++xxx+:::::::::;+++;::+X++++;;;;;+x+xXXXX$$$$$$$$$$XXx++;;;;+XXX$ + X+;;;;;;+++xxxxXXXXXxx;;;;;;;;+++;;;;+++:;;;;;;+++xXXXxx+xXXXXXXxx++++xxXXXXX$$$$$$$$$$XX+++;;;+XX$$ + X;;;;;;;+++++xxxXXXXXx+;;;;;;;;::::;;+;;+xXXXXXXXXX$$$$$XXXXXXx+xxXXXXXXXXXXX$$$$$$$$$$$Xx+++;;+XXX$ + X;;;;;;;;++++xxxXXXXXx+;;;+;;:::::;;+;::+XXXXXXXXX$$$$$$$$X++++++++xXXXXXXXXX$$$$$$$$$$XX+++++;+XXX$ + X;;;;;;;;+++++++XXxXxx++;;;;;;;;;;++;:::;++++xX$$$$$$$$$XXX+;++++++xXXXXXXXX$$$$$$$$$$$Xx+;;;;;+XX$$ + X;;;;;;;;++++++x+xxxXx;;;;;;;;;;;;++;::::::;;+xX$$$$$$XXx++;;;;+++xxxXXXXXXXX$$$$X$XX$X+;;;;;;;+XXX$ + X;;;;;;;;;++xx++++xxXX;;;;;;;;;;;++;::::::;;;++XXXXXXXxx+++;;;;;;;+xXXXXXXXXXX$XX$XXXX+;;;;;;;;+XXX$ + X;;;;:::;:;;+;;;;+xxXx;;;;;;;;;;;+;:::;;;;;;++++;+xXXxxXXxxxx++;;;;+xXXXXXXXXXXXX$$$X+;;;;;;;;;+XX$$ + X;;;;;;:;;;;;;;;;;+xXx;:::::;;;;;;;;;;+++xxXXXXXXXXXXX$$$XXXXXXxx+++++xxxXXXXXX$+XXX+;;;;;;;;;;+XXX$ + X;;;;;;;;;;;;;;;;;+xX+;:::::;;;;;;++xxXXX$$$$$$$$$$$$$$$$$$$$$$Xx++++++++xxXXX$X+xx+;;;;;;;;;;;;XXX$ + X;;;;;;;;;;;;;;;;;+x++;::::::::;;++XX$$$$$$$$$$$$$$$$$$&&&&&$$$X+;;;;;;;;++XX$$x+;;;;::::::::;:;XX$$ + X;;;;;;;:;;;;;;;;;;++;;:::::::::;;+xx++xX$$$XXXXXX$XXXXXXXXXXxx+;;;;;;;;;+xX$X+;;;;;;;;;;;;;;;;;XXX$ + X;;;;;;;::::::;;;;;++;;;:::::::::;;;;:;:;;;::::::;;;:;;;;;++;;;;+;;++;;+++xxX;;;;;;;;;;;;;;;;;;+XXX$ + X;;;;;;;::::::::;:;;;++;::::::::;;;;;:::;;;;;:;::;;;;;;;+++++;;;;;;;++++++xXx;;;;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;:::::::::::;++;:::::::::;;::::;;;;;;;;;;;;++++++++++;;;;;;;+++++++;;;;;;;;;;;;;;;;;;;;;XXX$ + X;;;;;;;;;;;;::::::;;+xx;;;;;;;;;;:::::;;;;;;;;;;;;;;;;++++++;;;::;++++++x+;;;;;;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;;;;;;;;::::;+xX+;;;;;;;;::::::::;;;::::::;;;;;;;+;;;;::;;;+++++xx;;;;;;;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;;;;;;;:::::;+x;++;;;;;;:::::::::::::::::::::::::;;;;;;;;;+++xx+xXX+;;;;;;;;;;;;;;;;;;;;XX$$ + X;;::;;;;;:::::::;:;:;+;++;;;;;;;;;;::;:::::::::::::::;;;;;;;;;;;+++xXXXX$$X+;;+;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;;::::;;;;::::;;;;;;;;++;;;;;;;;;::::::;::::;;;;;;;;;;+++xXXXXXXXxxXXx+;;;;;;;;;;;;;;;;;XX$$ + X+;;;;;;;;;;;;;;;;;;;;;:;;;;;+++++;;;;;;;;:::;;;;;;;;;;++;++++xxXXXXXXXXX++;;;:;:;;;;;;;;;;;;;;;X$$$ + X++;;;;;;;;;;;;;;;;;;;;;;;;;;++x++++;;;;;;;;;;;;;;;++;++;++x+xXXXXXXXXXXx;;;;;;;;:;;:;;;;;;;;;;;X$$$ + X+++;;;;;;;;;;;;;;;;;;;;;;;;;+++++++++++++++++++;++xxx++xXXxXXXXXXXXXXXXx;;;;;;;;;;;;;;;;;;;;;;+$$$$ + $x+++;;;;;;;;;;;;;;;;;;;;;;;;;++++xxxxx++xxxxx++xxXXxxxXXXXX$XXXXXXXXXXXx;;;;;;;;;;;;;;;;;;;;;;x$$$$ + $$$x+;;;;;;;;;;;;;;;;;;;;;;;;;;+++xxxxxxXXXXXXXXXXXXXXXXXXX$$X$$$$X$$$$Xx;;;;;;;;;;;;;;;;;;;+x$$$$$$ + $$$$$$$XXxxx+++++++;;;;;;;;;;;;;++xXXXXXXXxXXXXXXXXXXXXXXXX$X$$$$$$$$$$Xx;;;;;;++++++++xXX$$$$$$$$$$ + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" + +read -p "Appuyez sur [ENTER] pour revenir..." +./mainroom.sh + +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/kroo.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/kroo.sh new file mode 100755 index 00000000..9b8f1a11 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/kroo.sh @@ -0,0 +1,58 @@ +#!/bin/bash +clear + +# This room gets a little artsy with sleep commands, to help with the +# narrative of the story. This is why there are two versions - foyer and foyer2. + +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +# It's script time again... +sleep 1 +echo "Vous pénétrez à l'intérieur de l'Astroport." +echo +sleep 3 +echo "Une voix synthétique vous accueille." +espeak "Welcome. Please Identify." > /dev/null 2>&1 +echo +echo "Vous parcourez l'espace du regard" +echo "Au nord, face à vous se trouve un foyer où brule un feu." +echo +sleep 3 +echo "A l'ouest sont suspendus tuyaux, ustensiles et bocaux. Une cuisine?" +echo "A l'est il y a un genre de 'photomaton' " +sleep 2 +echo "Derrière vous, la porte par où vous êtes entré est encore ouverte." +echo +echo "Que voulez vous faire?" + +# And once again the room logic. + +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo "Vous vous asseyez sur le grand tapis devant le feu. Vous vous relaxez un instant." + ./magic8.sh + ;; + s ) ./bigroom.sh + exit ;; + e ) ./gameroom.sh + exit ;; + w ) ./grue.sh + exit ;; + u ) echo "Vous tapotez sur le barmoètre. Une photo satellite?" + ./meteofrance.sh + exit + ;; + h ) echo "La pièce est spacieuse. La chaleur du feu agréable, à gauche on dirait une cuisine explosée, à droite une chaise moletonnée fait face à un écran." ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, u et h..";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/kroo2.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/kroo2.sh new file mode 100755 index 00000000..ebdb5e36 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/kroo2.sh @@ -0,0 +1,40 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +# So here's a little story all about how this script got flip-turned upside down... +sleep 1 +echo "You're in a corridor, but it's quite a small one. You got here" +echo "the first time by hugging a statue of a kitten. Standard." +echo +echo "You see a glow coming from the rooms to your east and west, and" +echo "there's a big, old looking door to the south of you." +echo +echo "What would you like to do?" + +# Imma let you finish, but here's the room choices. + +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo "You faceplant the wall. Idiot." ;; + s ) ./bigroom.sh + exit ;; + e ) ./gameroom.sh + exit ;; + w ) ./grue.sh + exit ;; + u ) echo "There's nothing you can use right here." ;; + h ) echo "After hugging that cat you aren't sure you should try to hug yourself again." ;; + * ) echo "I'm sorry, I don't understand you. Commands are: n, e, s, w, u and h.";; + esac +done + +esac +exit \ No newline at end of file diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/lanceur.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/lanceur.sh new file mode 100644 index 00000000..782a7938 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/lanceur.sh @@ -0,0 +1,93 @@ +#!/bin/bash + +# Liste des jeux +jeux=("Super Mario" "Pokemon Rouge" "The Legend of Zelda" "Tetris" "Metroid") + +# Fonction pour afficher l'interface ASCII +afficher_ascii() { + cat << "EOF" + ____ _ _ _ _ _ _ + __/\__/ ___| |__ ___ (_)___(_) |_ | |_ ___ _ __ (_) ___ _ ___/\__ + \ / | | '_ \ / _ \| / __| | __| | __/ _ \| '_ \ | |/ _ \ | | \ / + /_ _\ |___| | | | (_) | \__ \ | |_ | || (_) | | | | | | __/ |_| /_ _\ + \/ \____|_| |_|\___/|_|___/_|\__| \__\___/|_| |_| _/ |\___|\__,_| \/ + |__/ +EOF +} + +# Fonction pour afficher le menu principal et l'interface GameBoy +afficher_interface() { + clear + echo "╔══════════════════════════════╗" + echo "║ GameBoy Advance ║" + echo "╚══════════════════════════════╝" + echo " Menu principal :" + echo " 1. Lancer Astroport (RENAULD)" + echo " 2. Lancer Astropo version 974 (JANICK)" + echo " 3. Jeux GameBoy" + echo " 4. Quitter" + echo "╚══════════════════════════════╝" +} + +# Fonction pour exécuter le premier script +executer_script1() { + echo "Exécution de Astroport..." + # Ajoutez ici la commande pour lancer votre premier script + "/home/janick/Astroport.ONE-master (1)/Astroport.ONE-master/adventure/adventure.sh" +} + +# Fonction pour exécuter le deuxième script +executer_script2() { + echo "Exécution de Astropo version 974..." + # Ajoutez ici la commande pour lancer votre deuxième script + "/home/janick/Astroport.ONE-master (1)/Astroport.ONE-master/adventure/games/Astropo_version_974/adventure.sh" +} + +# Fonction pour exécuter le jeu sélectionné +executer_jeu() { + choix=$1 + if [ "$choix" -ge 1 ] && [ "$choix" -le "${#jeux[@]}" ]; then + jeu_selectionne="${jeux[$((choix-1))]}" + echo "Lancement de $jeu_selectionne..." + # Ajoutez ici la commande pour lancer votre script ou jeu + # Par exemple : "./chemin/vers/votre_script.sh" + elif [ "$choix" == "M" ] || [ "$choix" == "m" ]; then + return + elif [ "$choix" == "Q" ] || [ "$choix" == "q" ]; then + echo "Au revoir!" + exit 0 + else + echo "Option invalide. Veuillez choisir une option valide." + fi +} + +# Boucle principale du menu +while true; do + afficher_interface + + read -p "Choix : " choix + + case $choix in + 1) + executer_script1 + ;; + 2) + executer_script2 + ;; + 3) + while true; do + afficher_interface_gameboy + read -p "Choix : " choix_jeu + executer_jeu "$choix_jeu" + read -p "Appuyez sur Entrée pour continuer..." + done + ;; + 4) + echo "Au revoir!" + exit 0 + ;; + *) + echo "Option invalide. Veuillez choisir une option valide." + ;; + esac +done diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/magic8.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/magic8.sh new file mode 100755 index 00000000..fa8b8fd7 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/magic8.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# magic 8 ball. Yup. Pick a random number, output message +# source: https://www.linuxjournal.com/content/bash-shell-games-lets-play-go-fish + +answers=("Oui c'est certain." "C'est carrément ça." + "Sans aucun doute." "Oui - assurément." + "Comptez la dessus." "Comme je le vois, oui." "Très probablement." + "Bonne perspective." "Oui." "Les signes indiquent que oui." + "Réponse floue, essayez à nouveau." "Redemandez plus tard." + "Il vaut mieux ne pas vous le dire maintenant.." "Impossible de prédire maintenant." + "Concentrez-vous et demandez à nouveau." "N'y comptez pas." + "Ma réponse est non." "Mes sources disent que non." + "Rien de bon." "Très douteux.") + +echo "Oh ! Boule magique, dis-moi la vérité, s'il te plaît...." ; echo "" +/bin/echo -n "Quelle est votre question ? " +read question + +answer=$(( $RANDOM % 20 )) + +echo "" +echo "J'ai regardé dans le futur et je dis: " +echo " ${answers[$answer]}" ; echo "" + +sleep 3 +./mainroom.sh + +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/mainroom.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/mainroom.sh new file mode 100755 index 00000000..d8b4d8a4 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/mainroom.sh @@ -0,0 +1,45 @@ +#!/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 et à l'ouest." +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 ;; + u ) echo "Il n'y a rien que vous puissiez utiliser ici." ;; + h ) echo "Vous observez votre montre, il est 20:12" ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, u et h..";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/meteofrance.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/meteofrance.sh new file mode 100755 index 00000000..6a6c6393 --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/meteofrance.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +# Fonction pour afficher l'interface ASCII +afficher_ascii() { + cat << "EOF" + ____ _ _ _ _ _ _ + __/\__/ ___| |__ ___ (_)___(_) |_ | |_ ___ _ __ (_) ___ _ ___/\__ + \ / | | '_ \ / _ \| / __| | __| | __/ _ \| '_ \ | |/ _ \ | | \ / + /_ _\ |___| | | | (_) | \__ \ | |_ | || (_) | | | | | | __/ |_| /_ _\ + \/ \____|_| |_|\___/|_|___/_|\__| \__\___/|_| |_| _/ |\___|\__,_| \/ + |__/ +EOF +} + +# Fonction pour afficher le menu +afficher_menu() { + echo "Choisissez une option :" + echo "1. Lancer Astroport (RENAULD)" + echo "2. Lancer Astropo version 974 (JANICK)" + echo "3. Quitter" +} + + +# Fonction pour exécuter le premier script +executer_script1() { + echo "Exécution de Astroport..." + # Ajoutez ici la commande pour lancer votre premier script + "/home/janick/Astroport.ONE/adventure/adventure.sh" +} + +# Fonction pour exécuter le deuxième script +executer_script2() { + echo "Exécution de Astropo version 974..." + # Ajoutez ici la commande pour lancer votre deuxième script + "/home/janick/Astroport.ONE-master (1)/Astroport.ONE-master/adventure/games/Astropo_version_974/adventure.sh" + +} + +# Boucle principale du menu +while true; do + clear # Efface l'écran pour un affichage propre + afficher_ascii + afficher_menu + + read -p "Choix : " choix + + case $choix in + 1) + executer_script1 + ;; + 2) + executer_script2 + ;; + 3) + echo "Au revoir!" + exit 0 + ;; + *) + echo "Option invalide. Veuillez choisir une option valide." + ;; + esac + + read -p "Appuyez sur Entrée pour continuer..." +done diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/red.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/red.sh new file mode 100755 index 00000000..061eec9b --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/red.sh @@ -0,0 +1,41 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +# Set up the script for this room. It's a simple one! +sleep 1 +echo "Vous prenez une trotinette électrique." +echo "Vous traversez toute la ville " +echo "A la sortie de la ville votre trotinette commence à manquer de puissance." +echo +echo "La batterie se vide." +echo "Pour joindre l'aéroport vous devez vous rendre dans l'autre ville Sainte Marie à 30 min" +echo +echo "Que voulez-vous faire?" +echo "Plusieurs choix s'offre à vous." +echo "(n) Payer un taxi" +echo "(e) Faire du stop" +echo "(w) Respawn" +echo "(s) Recharger la trotinette" + +# And the choices go here. +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo "Le taximan vous taxe tous votre argent et vous dépose à l'aéroport" ;; + s ) echo "L'emplacement de recharge vous fais attendre 30 min." ;; + e ) echo "Un Réunionnais s'arrête et vous dépose à l'aéroport." ;; + w ) ./mainroom.sh + exit ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w ";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/start.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/start.sh new file mode 100755 index 00000000..95cd0bea --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/start.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +clear + +# Logic in the game is stored in .ben files. This sample has just one 'logic' file. +# You can add more logic files by simply adding a 'sed' command and appropriate .ben file. +# First off, let us reset the game logic. Use this as an example. + +sed -i='' 's/on/off/' ../logic/leverlogic.ben + +# Who doen't love ASCII text, right? +# Next up, let's initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +# Next up, let's load in the initial introduction. Script is also stored in .ben files. +sleep 5 +file2="../script/opening.ben" +while IFS= read -r line +do + echo "$line" +done <"$file2" +read -p "Pressez sur [ENTER] pour démarrer..." + +#Okay, now that the introduction is out of the way, we can start the first room! +clear +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +sleep 1 + +# Here's where you introduce the room to the player. Be sure to tell them if there +# Are exits - but don't give too much away. Make it fun for them to explore! +echo "Salut à toi jeune déglingo." +echo "Vous attérissez au chef lieu de L'île de le Réunion." +echo "Vous êtes actuellement situé à Saint Denis." +echo +echo "Vous devrez choisir entre plusiers choix pour vous déplacer." +echo "Le but de ce jeu est de pouvoir voyager vers l'îles Maurice." +echo +echo "Vous pouvez vous diriger selon les points cardinaux." +echo "Au nord vous diriger vers un taxi, au sud vers un bus, à l'est, une trotinette, à l'ouest, vous marcher jusquà trouver de l'aide" +echo +echo "Que voulez-vous faire? Les commandes sont : n, e, s, w, u et h." +# Now we wait for their response - and send them somewhere accordingly. +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) ./white.sh + exit ;; # These lines will take the player to a new room - a new script file. + s ) ./brown.sh + exit ;; # Be sure to include 'exit' otherwise the game won't quit properly! + e ) ./red.sh + exit ;; + w ) ./green.sh + exit ;; + u ) echo "Vous ouvrez votre sac il contient une tente, des vêtements, un thermos, une scie pliante et un couteau" ;; # Something to say? You can also just echo. + h ) echo "Suivez ses coordonnées GPS 16.864841, 11.953808" ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w, u et h..";; + + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/rooms/white.sh b/adventure/games/janick.mourougassin@ynov.com/rooms/white.sh new file mode 100755 index 00000000..bd08d4ee --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/rooms/white.sh @@ -0,0 +1,53 @@ +#!/bin/bash +clear +# Initialise the Title Art +file1="../art/titleart.ben" +while IFS= read -r line +do + echo "$line" +done <"$file1" +echo + +#Setting up the room... +sleep 1 +echo "Vous zntrée dans le taxi en direction du nord.." +echo "Vous n'avez que 50 euros avec vous" +echo "Le taximan peut vous rapprocher de l'aéroport et vous amener à Sainte Clotilde" +echo "Vous accepter et vous rapprocher considérablement de l'aéroport" +echo +echo "Une fois à Saint Clotilde, vous êtes pris par de Kaniar de rue" +echo "Il vous encercle dans une ruelle sans issu" +echo +# Here we're going to check to see if the lever - the only logic we are using in this game - is on or off. +leverstate=`cat ../logic/leverlogic.ben` + if [ "$leverstate" = "on" ]; then + echo "Une poignée est apparue sur la porte de la façade..." + else + echo "Vous êtes pris au piège" + echo "Aucune entrée n'est visible." + fi +echo +echo "Pas d'autre chemin praticable que celui d'où vous venez." +echo +echo "Que voulez-vous faire ?" +echo "(n) sortir un couteau" +echo "(e) se battre" +echo "(w) fuire" +echo "(s) respawn" + +# Now lets capture this room's actions. Note that here, the actions change depending on whether or not +# the lever is on or off. If it's on, you go elsewhere. If it's off, you don't. +while true; do + read -p "> " nsewuh + case $nsewuh in + n ) echo " Les kaniars vous encercle en nombre et vous tabasse ... " ;; + s ) ./mainroom.sh + exit ;; + e ) echo " Les kaniars vous encercle en nombre et vous tabasse ... " ;; + w ) echo "Vous courrez sans pouvoir trouver une échappatoire. Les kaniars vous encercle en nombre et vous tabasse ..." ;; + * ) echo "Je suis désolé, je ne vous comprends pas. Les commandes sont : n, e, s, w ";; + esac +done + +esac +exit diff --git a/adventure/games/janick.mourougassin@ynov.com/script/opening.ben b/adventure/games/janick.mourougassin@ynov.com/script/opening.ben new file mode 100755 index 00000000..a4e07bca --- /dev/null +++ b/adventure/games/janick.mourougassin@ynov.com/script/opening.ben @@ -0,0 +1,69 @@ + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ + $$$$$$$XXx+++++;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+++++++++++++++++++++++++++++++++++++++xxxXXX$$$$$$$$$$$ + $$$x+;;;;++++++;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;++++++++xxxx++++++++++++++++++++++++++++++++++xX$$$$$$ + $x;;;;;;++++++++++;;;;;;;;;;;;;;;;;;;;;;;+++++xXXXXXxxxx+x+++++++++++++++++++++++++++++++++++++X$$$$ + $;;;;;;;;;+++++++++;;;;;;;;;;;;;;;;;;++++++;;;;;+++xXXXxxxxx+++++++++++++++++++++++++++++++++++x$$$$ + X;;;;;;;;;;;+++++++++;;;;;;;;;;;;;+++x+;++xxxXXXX++xx++xXXXXXx++++++++++++++++++++++++++++++++++X$$$ + X;;;;;;;;;;;;;;;;;+;;;;;;++++;;;;;++++;;+++++++++++++xXXXXXXXXxxx+++++++++++++++++++++++++++++++XX$$ + X;;;;;;;;;;;;;;;;;;;+++++++;;;++++++++;;;;++++xxxxx+++xXX$$$XXXXXXXxxx++++++++++++++++++++++++++XX$$ + X;;;;;;;;;;;;;;;;;++++++++++++x+;;;++XXx+++++xxXXXXXXxxXXX$$$$$$XXXXXXxx+x++++;;++++++++++++++++XX$$ + X;;;;;;;;;;;;;;;;;;;+xxXXXxxx++++;;++xXxXx+;;;;+xXXX$XXxxxXXX$$$Xx++++x+++xxx++;;;;+;;+;;+++++++XX$$ + X;;;;;;;;;;+++x+xxxXXXXXXXxxx++;;;;;+++xx++XXXXxxxXXXX$$$$XXXXX$$$XxxXXXxxxxx++;;;;;;;;;;;;+++++XX$$ + X;;;;+;;;;;;+++xXXXXXXXXXXXXXXXxx+++++xXXXXxxxXXX$XXXXXXX$$$$$$$$$$$XxXXXXXXx+++;;;;;;;;;;;;++++XX$$ + X;;;;;+;;;;;;+++xXXXXX$$$$$XXXXXx++++++XXXX$$$$$$$$$$$$$$XX$$$$$$$$$$$$XXXXXXxx+++;;;;;;;;;;++++XX$$ + X;;;;;;;;;;;;;+xXXX$$$$$XXxx++xxXxx+++xXXX$$$$$$$$$$$$$$$$$$$$$$$$$$$$$XXXXXXXXx++++;;;;;;;+++++XXX$ + X;;:;;;++++xxxXXXXXXxxx+++++;;;;++xXXXX$X$$$$$$$$$$$$$$$$$$$$$$$$$$$$XXXXXXXXXXXXX+++;;;;;;+++++XXX$ + X;;:;:;;++xXXXXXXXXXXXXXXxxx+++++xXXXX$$$$$$$$$$$$$$$$$$$X$$$$$XXXXXXXXXXXXX$XXXXXX+++;;;;;+++++XX$$ + X;:;::;;;+xxXXXXXXXXXxxXXX$XXXXXXXXXXXXX$$$$XXXXXXXXXXXXXXXXXXXXXXXXXXXXX$$$$$XXXXXx++;;;;;+++;+XXX$ + X;:::;;+xXXXXX$$XXXXXXXX$$XXXXXXXXXXXXXXXXXXx++x++xx++xx+xxxxxxxxxXXxXXXXX$$$$XXXXXXX++;;;;;;;;+XXX$ + X++++++xXXXXXXXXXXXXXXXXXXXxxxxxxxxx++++++++;;;+++;+;;;;;+++++++++xxxxXXX$$$$$$$XXxxxx+;++;;;;;+XX$$ + X+++xxxXXXXXXXXXXXXX$XXXXXx++++++++++;;;;++;;;;;::;;;;;;;;;+;;;;+++++++XXXX$$XXXXXx++++++;;;;;;+XXX$ + X++++xXXXXXXXXXXXX$$$XX+::....:::::::::::;;;;;::::::::::::::;::::;;;;+++XX$$$$$$XXXx+++++;;+;;;+XXX$ + X+;++++xxxXXXXX$$$X;:..:;;++++;;++++++;;;::..............:::::::::::;++;:;+X$$$$XXXxx++++++;;+;+XX$$ + X++++++++xXXXX$$$$x. .:XXx++++++xxxXXXXXXxx:. ....;xXXXXXXXxx+xxxxx++;:.::+$$XXx++++++++++;+XXX$ + X;;;;+++;+xxxX$$XX+.. ;$Xx+++xxxXXXXXXXXXXX+:. ...;XXXXX$$XXXXXXXXXXXXX+:::+$$$$XXXXxxx++++;+XXX$ + X+;;;;;;;;++xXXxxXx:..;$Xx++xXXXXX$X$$$$$$Xx:.:::::.:+X$$$$$$$$$XXXXXXXXXXx:::+$$$$XXXXXx++++;;+XX$$ + X+;;;;;;;;;+++xXXXXX+.;XXx+XXXXXXXXXXXXXXXX;.:::::;:.;X$$$$$XXXXXXX$$$XXXX+..;x$$$$XXXXXx+++;;++XXX$ + X;;;;;;;;;++xXXXxxX$$;:Xx+xXxxXXXXXXXXXXx+;:.:::::;;:;XXX$$XXXXXXXXXXXXXXX;:X$$$$$$XXXXXXx++++;+XXX$ + X;;;;;;;;++xXXXXxx$&$X:;x+;;++++;;;;;;;;::::::::::;;;:;;;;;+++xxxXxx+++xx+:+$$$$$$$XXXXXXxx+++;+XX$$ + X+;++++++xxxXXXXxX$$XX+::;;;;::::::::::::.:::::::::;;;::::::;;;;;+++++xx+::X$$$$$$$$XXXxx+++++++XXX$ + X+;;+++++xxxxxXxXX$XXXx+;::::::::..::::::;;::::::::;;;;:::::::::;;;;;++;:;xX$$$$$XX$$$XXx++++;;+XXX$ + X;;;;;;++++xxxxXXXXXxx;++;;::::::;;++xxx+:::::::::;+++;::+X++++;;;;;+x+xXXXX$$$$$$$$$$XXx++;;;;+XXX$ + X+;;;;;;+++xxxxXXXXXxx;;;;;;;;+++;;;;+++:;;;;;;+++xXXXxx+xXXXXXXxx++++xxXXXXX$$$$$$$$$$XX+++;;;+XX$$ + X;;;;;;;+++++xxxXXXXXx+;;;;;;;;::::;;+;;+xXXXXXXXXX$$$$$XXXXXXx+xxXXXXXXXXXXX$$$$$$$$$$$Xx+++;;+XXX$ + X;;;;;;;;++++xxxXXXXXx+;;;+;;:::::;;+;::+XXXXXXXXX$$$$$$$$X++++++++xXXXXXXXXX$$$$$$$$$$XX+++++;+XXX$ + X;;;;;;;;+++++++XXxXxx++;;;;;;;;;;++;:::;++++xX$$$$$$$$$XXX+;++++++xXXXXXXXX$$$$$$$$$$$Xx+;;;;;+XX$$ + X;;;;;;;;++++++x+xxxXx;;;;;;;;;;;;++;::::::;;+xX$$$$$$XXx++;;;;+++xxxXXXXXXXX$$$$X$XX$X+;;;;;;;+XXX$ + X;;;;;;;;;++xx++++xxXX;;;;;;;;;;;++;::::::;;;++XXXXXXXxx+++;;;;;;;+xXXXXXXXXXX$XX$XXXX+;;;;;;;;+XXX$ + X;;;;:::;:;;+;;;;+xxXx;;;;;;;;;;;+;:::;;;;;;++++;+xXXxxXXxxxx++;;;;+xXXXXXXXXXXXX$$$X+;;;;;;;;;+XX$$ + X;;;;;;:;;;;;;;;;;+xXx;:::::;;;;;;;;;;+++xxXXXXXXXXXXX$$$XXXXXXxx+++++xxxXXXXXX$+XXX+;;;;;;;;;;+XXX$ + X;;;;;;;;;;;;;;;;;+xX+;:::::;;;;;;++xxXXX$$$$$$$$$$$$$$$$$$$$$$Xx++++++++xxXXX$X+xx+;;;;;;;;;;;;XXX$ + X;;;;;;;;;;;;;;;;;+x++;::::::::;;++XX$$$$$$$$$$$$$$$$$$&&&&&$$$X+;;;;;;;;++XX$$x+;;;;::::::::;:;XX$$ + X;;;;;;;:;;;;;;;;;;++;;:::::::::;;+xx++xX$$$XXXXXX$XXXXXXXXXXxx+;;;;;;;;;+xX$X+;;;;;;;;;;;;;;;;;XXX$ + X;;;;;;;::::::;;;;;++;;;:::::::::;;;;:;:;;;::::::;;;:;;;;;++;;;;+;;++;;+++xxX;;;;;;;;;;;;;;;;;;+XXX$ + X;;;;;;;::::::::;:;;;++;::::::::;;;;;:::;;;;;:;::;;;;;;;+++++;;;;;;;++++++xXx;;;;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;:::::::::::;++;:::::::::;;::::;;;;;;;;;;;;++++++++++;;;;;;;+++++++;;;;;;;;;;;;;;;;;;;;;XXX$ + X;;;;;;;;;;;;::::::;;+xx;;;;;;;;;;:::::;;;;;;;;;;;;;;;;++++++;;;::;++++++x+;;;;;;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;;;;;;;;::::;+xX+;;;;;;;;::::::::;;;::::::;;;;;;;+;;;;::;;;+++++xx;;;;;;;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;;;;;;;:::::;+x;++;;;;;;:::::::::::::::::::::::::;;;;;;;;;+++xx+xXX+;;;;;;;;;;;;;;;;;;;;XX$$ + X;;::;;;;;:::::::;:;:;+;++;;;;;;;;;;::;:::::::::::::::;;;;;;;;;;;+++xXXXX$$X+;;+;;;;;;;;;;;;;;;;XX$$ + X;;;;;;;;;::::;;;;::::;;;;;;;;++;;;;;;;;;::::::;::::;;;;;;;;;;+++xXXXXXXXxxXXx+;;;;;;;;;;;;;;;;;XX$$ + X+;;;;;;;;;;;;;;;;;;;;;:;;;;;+++++;;;;;;;;:::;;;;;;;;;;++;++++xxXXXXXXXXX++;;;:;:;;;;;;;;;;;;;;;X$$$ + X++;;;;;;;;;;;;;;;;;;;;;;;;;;++x++++;;;;;;;;;;;;;;;++;++;++x+xXXXXXXXXXXx;;;;;;;;:;;:;;;;;;;;;;;X$$$ + X+++;;;;;;;;;;;;;;;;;;;;;;;;;+++++++++++++++++++;++xxx++xXXxXXXXXXXXXXXXx;;;;;;;;;;;;;;;;;;;;;;+$$$$ + $x+++;;;;;;;;;;;;;;;;;;;;;;;;;++++xxxxx++xxxxx++xxXXxxxXXXXX$XXXXXXXXXXXx;;;;;;;;;;;;;;;;;;;;;;x$$$$ + $$$x+;;;;;;;;;;;;;;;;;;;;;;;;;;+++xxxxxxXXXXXXXXXXXXXXXXXXX$$X$$$$X$$$$Xx;;;;;;;;;;;;;;;;;;;+x$$$$$$ + $$$$$$$XXxxx+++++++;;;;;;;;;;;;;++xXXXXXXXxXXXXXXXXXXXXXXXX$X$$$$$$$$$$Xx;;;;;;++++++++xXX$$$$$$$$$$ + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ + +Les commandes pour vous déplacer et interagir sont +'n' aller au nord, +'s' aller au sud, +'e' aller à l'est, +'w' aller à l'ouest, +'u' utiliser, +'h' observer plus en détail. + +Ctrl-C pour quitter. + + - - -