#!/bin/bash

#This script for execution of "Cube3D" gameplay.
#This script is a part of a system of the user's configurations.
#(c) 2003 Alexander Nekrasov <canis@altlinux.ru>.
#This program is distributed under the terms of the GPL v2.

mkdir -p ~/.cube3d/savegames
test -e ~/.cube3d/autoexec.cfg || cp /etc/cube3d/autoexec.cfg ~/.cube3d/
test -e ~/.cube3d/servers.cfg || cp /etc/cube3d/servers.cfg ~/.cube3d/
ln --symbolic --force /usr/lib/games/cube3d/packages ~/.cube3d/packages
ln --symbolic --force /usr/lib/games/cube3d/data ~/.cube3d/data
ln --symbolic --force /usr/lib/games/cube3d/cube_client ~/.cube3d/cube_client
echo "=========================================================================================================="
echo " "
echo "Welcome to Cube3D gameplay !!!"
echo "We hope that she will bring to you some pleasant instants."
echo "Author of Cube3D: Wouter van Oortmerssen aka Aardappel <wouter@fov120.com>"
echo "ALT Linux TEAM developer of Cube3D: Alexander Nekrasov aka Canis Cerberus <canis@altlinux.ru>"
echo " "
echo "=========================================================================================================="
cd ~/.cube3d/
./cube_client -w800 -h600 -t
