O'Reilly logo

Learning Libgdx Game Development by Andreas Oehlke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Laying foundations

Let us now move on from theory to practice and get down to the actual implementation details. We will begin with implementing the first basic version of CanyonBunnyMain, WorldController, and WorldRenderer. Additionally, we will use a utility class for storing constant values in a new class called Constants. It is true that this class does not appear in the class diagram, as it is just there for our convenience to avoid scattering or, even worse, duplicating certain constants all over the source code files. Also, since the stored values in Constants are meant to be used in virtually any other class, it would only clutter up the class diagram by drawing one additional line for each class to Constants.

Note

For simplicity, we will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required