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.
- Host: GitHub
- URL: https://github.com/g3th/gui-and-event-bus-example
- Owner: g3th
- Created: 2025-08-18T06:01:24.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-18T06:20:32.000Z (11 months ago)
- Last Synced: 2025-08-18T08:24:09.051Z (11 months ago)
- Topics: camera, event-bus, gui, libgdx, viewport
- Language: Kotlin
- Homepage:
- Size: 187 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GUI Example with Event Bus
## Rendering Text without pixellation

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.