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 5. Handling Large Programs with Custom Classes

Our program is really starting to develop now, and it's growing a bit too large to be easily manageable. That means it's time to start breaking it into smaller chunks to make it easier to handle. The topic of this chapter, custom classes, will let us do just that.

We're going to cover:

  • Importing custom classes
  • Adding NodePath functionality to a custom class
  • Accessing classes from within another class

Once we have these topics under our belt, we'll be able to handle our program no matter how large it grows by breaking it down into bite-size pieces. So, what are we waiting for, right?

Importing custom classes

A class is a kind of definition. It allows us to describe a certain kind of object, and then ...

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