Skip to content
fasigno edited this page Jan 23, 2013 · 37 revisions

This is a guide for GNU/Linux only, but OpenGOO can also run on Windows and Mac OSX

Compile the source

Mind it could be unstable or buggy and the compilation process could not finish too!

What you need

  • A standard development environment
  • CMake
  • Qt4 with header files
  • OpenAL and freealut
  • OpenGOO source

Set up the build environment

First of all you'll have to set up your build environment:

  • install the standard development tools (gcc make ...) from repository

    • on Ubuntu: sudo apt-get install build-essential
    • on Fedora: yum groupinstall ‘Development Tools’ and yum groupinstall ‘Development Libraries’
  • install cmake from repository

    • on Ubuntu: sudo apt-get install cmake
    • on Fedora: yum install cmake
  • install OpenAL and FreeALUT from repository:

    • on Fedora: yum install openal-devel freealut-devel
  • install Qt4 with the header files from repository

    • on Ubuntu: sudo apt-get install libqt4-core libqt4-gui libqt4-xml libqt4-dev libqt4-opengl libqt4-opengl-dev
    • on Fedora: yum install qt

Build OpenGOO

USE THE CONSOLE

  • Move into your home directory or any folder you like

    • cd ~
  • Download the code

  • Configure and compile the game

    • cd ~/OpenGOO/
    • qmake OpenGOO.pro in some distribution like Fedora type qmake-qt4 OpenGOO.pro
    • make
  • Install (optional)

    • sudo -s or su
    • mkdir /opt/OpenGOO (creates the game directory in /opt)
    • mv OpenGOO /opt/OpenGOO/OpenGOO.bin (moves the executable)
    • mv *.index and mv *.level and mv *.svg (moves the resurces)
    • Create a script to run OpenGOO
      • touch /usr/bin/OpenGOO (creates an empty text file)

      • modify it with your favorite text editor (I use nano) nano /usr/bin/OpenGOO and add this

        `#!/bin/sh`
         
         `cd /opt/OpenGOO/`
        
        `./OpenGOO`
        
      • make it executable chmod +x /usr/bin/OpenGOO

Now you can run OpenGOO directly from your console simply typing the OpenGOO command!

  • Clean the build directory
    • exit (returns to normal user)
    • cd ~ or cd WHERE_YOU_DOWNLOAD_THE_SOURCE
    • rm -rf OpenGOO/

##Run the game

There are some flags you can use:

-debug  (for more debug output)
-fps    (to show current fps)
-opengl (use opengl for a higher performance)
example:
./OpenGOO -opengl -debug

Enjoy!

Installation in Foresight

sudo conary install opengoo=gameway.rpath.org@fl:2

Start the game from the menu entry or use 'opengoo' in console

Levels

Download new levels or create and share yours here: OpenGOO Levels