Game Development Reference
In-Depth Information
Creating an obstacle course
Now, we're going to replace the plane we've been using for the sandbox with something
that is a bit more interesting. The SandboxUtilities_CreateLevel function in-
ternally creates a number of boxes that represent a level with more variation in height and
terrain.
Tip
Take a look at the SandboxUtilities_CreateBox function to know how you can
change the layout of the level or create additional sandbox geometry.
Sandbox.lua :
require "SandboxUtilities"
function Sandbox_Initialize(sandbox)
SandboxUtilities_CreateLevel(sandbox);
Sandbox.CreateAgent(sandbox, "SoldierAgent.lua");
end
In the following screenshot, you can see that we have introduced some obstacles for the
agent:
Search WWH ::




Custom Search