by Jonathon Fowler, Ken Silverman, and others
This is the source code for my port of Ken Silverman's Build game engine to make the engine functional on modern hardware and operating systems.
Before you begin, clone this repository or unpack the source archive.
Now, based on your chosen OS and compiler:
sudo apt-get install build-essential libsdl2-dev
sudo pkg install gmake sdl2 pkgconf
sudo apt-get install libgtk-3-dev
sudo pkg install gtk3
make
or gmake
(BSD)./data/game
The project will automatically download the SDL2 framework to xcode/frameworks upon first build. If there are problems with this process, you can manually fetch SDL2-2.x.y.dmg from http://libsdl.org/download-2.0.php and copy SDL2.framework found in the .dmg file to xcode/frameworks.
nmake /f Makefile.msvc
data\game
Some engine features may be enabled or disabled at compile time. These can be passed to the MAKE tool, or written to a Makefile.user (Makefile.msvcuser for MSVC) file in the source directory.
These options are available:
RELEASE=1
– build with optimisations for release.RELEASE=0
– build for debugging.USE_POLYMOST=1
– enable the true 3D renderer.USE_POLYMOST=0
– disable the true 3D renderer.USE_OPENGL=1
– enable use of OpenGL 2.x acceleration.USE_OPENGL=3
– enable use of OpenGL 3.x acceleration.USE_OPENGL=USE_GL2
– enable use of OpenGL 2.x acceleration. (Not a valid setting for MSVC.)USE_OPENGL=USE_GL3
– enable use of OpenGL 3.x acceleration. (Not a valid setting for MSVC.)USE_OPENGL=USE_GLES2
– enable use of OpenGL ES 2.0 acceleration. (Not a valid setting for MSVC.)USE_OPENGL=0
– disable use of OpenGL acceleration.WITHOUT_GTK=1
– disable use of GTK+ to provide launch windows and load/save file choosers.Settings for the KenBuild test game and its editor can be found in these locations depending on your operating system:
C:\Users\xxx\AppData\Local\KenBuild
/Users/xxx/Library/Application Support/KenBuild
~/.kenbuild
Enjoy!
Jonathon Fowler