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 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.