An open API service indexing awesome lists of open source software.

https://github.com/g3th/gui-and-event-bus-example

Separate GUI and world in your libgdx game, and use frame buffer first-pass rendering to draw GUI as a single sprite.
https://github.com/g3th/gui-and-event-bus-example

camera event-bus gui libgdx viewport

Last synced: 10 months ago
JSON representation

Separate GUI and world in your libgdx game, and use frame buffer first-pass rendering to draw GUI as a single sprite.

Awesome Lists containing this project

README

          

# GUI Example with Event Bus
## Rendering Text without pixellation

![Alt text](assets/pic.png "GUI Example")

This example shows how to render text and build a simple Graphic Interface on top of custom world-size rendering. Often, a separate camera is used for the HUD or interface, while another camera is used to render sprites and other game elements.

The example also shows how to create an Event manager, a commonly used pattern to manage events while avoiding tight-coupling. This is to eliminate the use of globals and makes game code much more maintainable.

Build with IntelliJ or Android Studio.