The most important question that any mew games programmer can ask themselves is not "what game should I create?". It is actually "which games engine should I choose?". If they do ask that question then one very good answer is Panda3D and there are a number of reasons for that. Panda3D:
- is free and open source;
- is multi-platform
- allows games programming in both C++ and Python
- is powerful but not resource hungry
- encourages object oriented design
Above all, Panda3D is incredibly easy to use.
Obtaining Panda3D
The Panda3D SDK (Software Developer's Kit) can be downloaded from the Panda3D web site. Here the programmer will find installation packages for:
- Windows
- Linux
- Mac
It's then just a matter of following the instructions and in just a few minutes the ordinary programmer will be ready to become a games programmer.
Testing Panda3D
Just to make sure that the programmer really appreciates the versatility of the games engine, Panda3D come with some demo games already installed. The programmer can, therefore, test out games such as Asteroids (as shown in figure 1 at the bottom of this article) or Boxing Robots (as shown in figure 2).
Getting Ready to Program with Panda3D
Panda3D has no IDE (Integrated Design Environment). Instead it allows the programmer to choose the environment in which they want to program. For example the programmer may choose to use:
- Windows Notepad to write code and and the command prompt to run it
- Programmer Notepad to create and run the code
However, the process is always the same:
- write Python code in a text editor
- save the file with a .py extension
- run the file using Panda3D's ppython executable.
The next stage is, of course, to write the code.
A Simple Panda3D Application
Not only does Panda3D come with some ready to run games, but it also comes with some ready to use models. It is, therefore, easy to create a simple application. One which will, for example, load a terrain and then spin a camera around it:
The end result can be be seen in figure 3. And that just leaves one question for the new games programmer - "why haven't I programmed with Pand3D before?".