Online leaderboards and the .NET API

We'd like to show a bit of the Internet connection capabilities of LibGDX and a great service to engage players—online leaderboards. For a game like ours that should be focused on score, this feature is a great addition.

A service called dreamlo (http://dreamlo.com/) lets us have a leaderboard in the cloud and in order to connect to it, we have specific and simple classes brought by LibGDX's awesomeness.

Let's open the LeaderboardsScreen class and make changes, as shown in the following code:

public class LeaderboardsScreen implements Screen { Core game; Stage stage; Image backgroundImage; TextButton backButton; Label label[]; boolean loaded; public LeaderboardsScreen(Core game) { this.game = game; stage = new ...

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.