O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

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. GUI Goodness: All About the Graphic User Interface

Now is the time to start giving the player more options and more information. We've almost got a playable racing game at this point, though we don't have the weapons yet. If we add in a Graphical User Interface, we'll be that much closer to our goal of a complete game.

The GUI components we'll need to create are:

  • Menu system
  • Putting menus to use
  • In-game HUD

To create these elements, we'll be using Panda3D's DirectGUI system. This system includes all the tools we'll need to make our GUI and get it running.

Creating a menu system

Rather than creating menus individually, it would be wiser to create a system that will allow us to make all the menus we need. We can do this if we rely on the handy ...

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