Game Development Reference
In-Depth Information
The essentials of a cube-based world
In this recipe, we'll build a small framework to generate optimized cube meshes, which can
be used to create large-scale worlds. This framework will consist of an
AppState
object
to handle user actions, a class called
CubeWorld
that will store the terrain data, and a
class called
CubeCell
that will store the data for individual cells. In addition, there is a
CubeUtil
class that will help us to generate meshes.