-
Book Overview & Buying
-
Table Of Contents
Lua Game Development Cookbook
By :
The Box2D library is a physical simulation engine developed in the C++ language. Fortunately, there's a binding to the Lua language called LuaBox2D. This recipe shows you how to prepare the LuaBox2D library for use in case there's no binary package available for your platform.
The LuaBox2D library uses the CMake building system to accommodate different platform needs. This also makes the preparation process almost painless and automatic. However, there are certain requirements to make this possible.
You'll will need the following:
A C++11 standard compliant C++ compiler
The CMake build system
The Git versioning system
The Lua 5.1 development package with header files and linkable libraries
After these requirements are satisfied, you can start building the LuaBox2D library.
First, you'll have to download the LuaBox2D repository content to your computer with the following Git command:
git clone --recursive https://github.com/soulik/LuaBox2D.git
This will...
Change the font size
Change margin width
Change background colour