Defining the Game World

One of the joys of working in 3D is that you are free from the shackle of pixels. You can define your world in whatever units you want. The game mechanics that were outlined dictate a limited playing field, so start by defining that field. Figure 12–5 shows you the area of the playing field in the game's world.

images

Figure 12–5. The playing field

Everything in the world will happen inside this boundary in the x/z plane. Coordinates will be limited on the x-axis from −14 to 14 and on the z-axis from 0 to −15. The ship will be able to move along the bottom edge of the playing field, from (−14,0,0) to (14,0,0).

Next, define ...

Get Beginning Android 4 Games Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.