Spider Fish
Building with cmake
First, download and install cmake.
http://www.cmake.org/
Run the following commands:
$ cd build
$ cmake ../
This will generate a build system appropriate for your environment in the
build
directory. Built binaries will be located in build/bin
.
Running the game Windows
- Build the game.
- If on Windows, copy all dlls from
lib
to the same directory as the
spifi_game
executable.
- Copy images into the same directory as the executable, or if using
Visual Studios copy the images into the project directory.
- Run the
spifi_game
executable in build/bin
.
Linux
Prerequisites
- libsdl1.2
- libsdl1.2-dev
- libsdl-ttf2.0
- libsdl-ttf2.0-dev
- libsdl-image1.2
- libsdl-image1.2-dev
- libsdl-mixer1.2
- libsdl-mixer1.2-dev
- cmake
- make
- gcc
Build/Run
- mkdir build
- cd build
- cmake ..
- make
- ./spifi
Directory structure
- /src - cpp source files
- /resources - images, audio files, etc