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

Creating a World Object

Let's take a moment to talk about object-oriented programming. OOP, as object-oriented programming is often abbreviated, is a design idea for organizing a program's code. Instead of creating a long list of line after line of code that defines the entire program all at once, we break it into pieces. For example, one of these code pieces might be all of the code that controls the player character in the game. Another might be the code for a menu. Because we break the program apart along these logical lines that pertain to objects within the program we refer to them as objects as well. That's where object-oriented programming gets its name.

We break the program apart by using classes. A class is a grouping of code that defines ...

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