This is a spin-off project of Tim Beaudet's Artificial Intelligence in Racing Simulations project that includes many similar code portions that are relevant to racing. The project uses the 2D TurtleBrains framework.
- Download/Install premake5 on your system.
- Download latest version of TurtleBrains.
- Download latest version of Racing Brains.
- Add
build/turtle_brains_build.lua
with contents similar to:return { path = "path/to/turtle_brains/" }
- Run the script
make_project.bat
ormake_project.sh
depending on your system which will (by default) create a Visual Studio or XCode project in thebuild/system
directory. Open and edit freely.
The XCode project needs to be modified slightly by hand after getting generated with Premake5. Once opened, open project settings and modify the following:
Setting Name | Value |
---|---|
Deploy Target | 10.7 |
C++ Lang. Dialect | C++11 (-std=c++11) |
C++ Std Library | libc++ (with C++11 support) |
Finally you to run from XCode you will need to modify the working directory by editing the scheme, Product > Scheme > Edit Scheme
choose Run, then Options and set the working directory to path/to/racing_brains/run/
Premake5 works a bit better on Windows so all of this is setup properly in the generated Visual Studio project.