FarmerGame is a small project written in three days and was built to show the versatility of AllegroExt and Lighting4. It features a short campaign against evil potatos (don't ask) and was an implementation of a team project outline.
Clone repository with --recurse-submodules flag
Requirements: Boost (1.68.0), Allegro (5.2.4), and Box2D (2.3.1)
- Installing Boost
- Download at https://www.boost.org/
- In boost root directory, run
./bootstrap
- For default configuration compatibility run:
./b2 --stagedir=./stage/VS2017/x64 address-model=64 --toolset=msvc-14.1 --with-thread variant=release link=static threading=multi runtime-link=static
- Add the boost root directory to CMAKE_INCLUDE_PATH and the directory of your boost library files (should be in stage/lib) to CMAKE_LIBRARY_PATH.
- Installing Box2D
- Download from https://github.com/erincatto/Box2D
- Install Premake5
- Run
premake5 vs2017 --StaticRuntime
- Run visual studio solution or make
- Installing Allegro
- Windows:
- Ubuntu:
- Install Allegro5 Package with this guide
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017" -A x64 -T host=x64 -Dboxlibdir="(Box2D Directory)\Build\bin\x86_64\Release\" -Dboxincludedir="(Box2D Directory)" #For Ubuntu don't include -G option
Run make or build the solution
Set FarmerGame as Startup Project after building on Visual Studio
- If using Visual Studio, make sure all projects are using /MT runtime linking and Basic Runtime Checks is set to default.