O'Reilly logo

Libgdx Cross-platform Game Development Cookbook by Alberto Cejas Sánchez, David Saltares Márquez

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

Chapter 8. User Interfaces with Scene2D

In this chapter, we will cover the following recipes:

  • Introducing the Scene2D API
  • Widget collection overview
  • Creating a basic menu screen using tables
  • Skin customization
  • Creating new widgets

Introduction

User interface refers to the methods and components through which a user will interact with your application, which may or may not be a game. To make your life easier, Libgdx provides you with a built-in variety of widgets and structural components you can use to create a scene graph, commonly known as Scene2D.

Note

A scene graph is basically a data structure to hierarchically organize the content of a scene. This implies that changes in parent nodes will be reflected on their children too.

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