Adding a SkyDome

If we want to be in space, we will need to give our players a bit of context. We may want to add something similar to a SkyDome that represents where we are.

Getting the model

As mentioned before, there's a number of different ways to get 3D models. We will take the one SkyDome that is in the LibGDX tests, but you can model your own if you want and add your own charm.

Or you can get it from our repository

(https://github.com/DeeepGames/SpaceGladiators/tree/Prototype/android/assets).

Implementing

After pasting the files in the Assets folder, let's make the additions for the dome. Let's make the following changes to GameWorld.java:

public class GameWorld { ... private Entity dome; ... private void loadLevel() { ... engine.addEntity(dome ...

Get Building a 3D Game with LibGDX now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.