-
Notifications
You must be signed in to change notification settings - Fork 36
Touchpads
Touchpad is a specialized widget intended for touch screen control. It serves as a replacement for a physical joystick. It's mostly implemented in mobile games, but can be used on any platform.
The style for Touchpad is very simple. It consists of only two drawables:
The background determines the preferred size of the widget. Consider making the image semi-transparent so that gameplay is not obstructed.
This is the part of the Touchpad that the player will press to move the joystick. It must be sized within the bounds of the background.
You typically want your game to play underneath your Touchpad. A two viewport solution will work well in this case:
Check out the video on Viewports for more details.
Though there is not an official widget in Scene2D, the Touchpad can be hacked to emulate this behavior:
Continue with 12 - Window and Dialog or return to the table of contents.
Getting Started
Windows
Linux
Mac
Features Manual
Colors
Fonts
Creating Bitmap Fonts
Creating FreeType Fonts
Creating Image Fonts
Drawables
Nine Patches
Ten Patches
Classes, Styles, and the Preview Panel
Custom Classes
Exporting
Importing
Saving / Loading
VisUI Skins
Tips and Tricks
TextraTypist Playground
Scene Composer
Scene Composer
Exporting a Scene
Modifying a Scene
Tutorials
Skin Composer Videos
From The Ground Up Series
Examples
Ray3K Skins