Max Fighter - Source Code Readme
This source code is dual licensed and released both under the GNU General Public License (GPL) and the Creative Commons Attribution-NonCommercial-ShareAlike license (by-cc-sa 2.5). See the gpl.txt file that came with this distribution for a copy of the GPL. To view a copy of the Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License, visit http://creativecommons.org/licenses/by-nc-sa/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.
Requirements:
To build Max Fighter, you need the following tools and libraries:
- SCons (http://www.scons.org)
- MySDL (http://www.musgit.com/sources/mysdl/)
- OpenGL with GLU
- SDL (http://www.libsdl.org)
- SDL_image (http://www.libsdl.org/projects/SDL_image/)
- libpng (http://www.libpng.org/pub/png/libpng.html)
- expat (http://expat.sourceforge.net/)
- zlib (http://www.zlib.net/)
- OpenAL (http://www.openal.org)
- libogg & libvorbis (http://xiph.org/vorbis/)
On a Linux system, you need a working g++ compiler installation. On a Windows system you need the mingw compiler.
The MySDL source distribution must be located on the same directory level as the Max Fighter source distribution, and the MySDL library must be compiled for the system(s) Max Fighter will be compiled for. Otherwise, the Max Fighter build script will report that the MySDL library cannot be found.
Building the game:
To build Max Fighter for the local system, execute:
scons dist=1
Leave out "dist=1" in this and all subsequent build commands to build a development version. The development version contains debugger (gdb) symbols and can be run from the source root directory. The standard (non-development) version uses code optimisation and expects the game resources in the system's standard locations. On Linux systems, this means the game has to be installed before it can be run, otherwise it will not find the graphics and sound resources.
After a succesful build process, you will find an installable distribution in the dist directory.
To build Max Fighter for a Windows system using a Linux system (cross-compiling), execute:
scons win32=1 dist=1
You will need an installed mingw compiler and the correct libraries. This will create a Windows distribution in the dist/win32 directory. A Windows installation (or emulator) is needed to execute the compiled program. If you have the nsis installer package on your system, execute the following command to create a Setup executable from the new distribution:
makensis dist/win32/installer.nsi
Copyright (C) 2006 Marian Schedenig (marian@musgit.com)
