Scene2d is a 2D scene graph for building applications and UIs using a hierarchy of "actors". Integrated in libGDX.
Scene2d is a 2D scene graph for building applications and UIs using a hierarchy of actors. Integrated in libgdx. It provides the following features:
Rotation and scale of a group is applied to all child actors. Child actors always work in their own coordinate system, parent transformations are applied transparently.
Simplified 2D drawing via SpriteBatch. Each actor draws in its own un-rotated and unscaled coordinate system where 0,0 is the bottom left corner of the actor.
Hit detection of rotated and scaled actors. Each actor determines if it is hit using its own un-rotated and unscaled coordinate system.
Routing of input and other events to the appropriate actor. The event system is flexible, enabling parent actors to handle events before or after children.
Action system for easy manipulation of actors over time. Actions can be chained and combined for complex effects.