2022-03-05 02:16:41 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This Launch script is based on BashVenture.
|
|
|
|
# It runs on Astroport Stations and allow players to create their own digital stories
|
|
|
|
# First you have to install IPFS in order to play with everyone in the same network
|
|
|
|
#
|
|
|
|
# Remember, kids - sharing is caring! Keep it open. Spread the love.
|
|
|
|
# - @BenNunney
|
|
|
|
# Thanks and gratitude to all living creatures and the whole creation.
|
|
|
|
# - @Fred
|
|
|
|
|
|
|
|
homefolder=$(pwd)
|
|
|
|
newgame="$HOME/.zen/game"
|
|
|
|
|
2022-03-07 02:02:11 +01:00
|
|
|
if [[ ! -d ~/.zen/game/rooms ]]; then
|
2022-03-05 02:16:41 +01:00
|
|
|
mkdir -p $newgame
|
|
|
|
|
|
|
|
cp -r rooms $newgame/rooms
|
|
|
|
cp -r art $newgame/art
|
|
|
|
cp -r script $newgame/script
|
|
|
|
cp -r logic $newgame/logic
|
2022-03-07 02:02:11 +01:00
|
|
|
cp -r tools $newgame/tools
|
2022-03-08 23:37:08 +01:00
|
|
|
cp start.sh $newgame/
|
|
|
|
|
2022-03-07 02:02:11 +01:00
|
|
|
|
2022-03-05 02:16:41 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Chargement..."
|
|
|
|
echo
|
|
|
|
sleep 3
|
|
|
|
|
|
|
|
cd $newgame/rooms
|
|
|
|
./start.sh
|
|
|
|
|
|
|
|
cd "$homefolder"
|
|
|
|
rm -r $newgame
|
|
|
|
|
|
|
|
echo
|
|
|
|
exit
|