Laying foundations

Let's 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 to store 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, as 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.


For simplicity, we will use the ...

Get Learning LibGDX Game Development - Second Edition 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.