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 O’Reilly online learning.

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