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

Time for action - printing the task list from the task manager

The task manager starts with some important tasks already assigned to it. Let's go ahead and print the list of tasks so we can see what the task manager is up to.

  1. Let's start where we left off last chapter. Open up chp02_11.py and resave it in the Chapter03 folder as chp03_01.py.
  2. We only need to add one line of code to the __init__ method to accomplish our goal here. At the end of the method add the following line:
    print(taskMgr)
    
  3. We can also remove the Render Attribute changes we have made, and we should make sure that all of our model NodePaths are reparented to render instead of anything else.
    class World: def __init__(self): base.setBackgroundColor(0, 0, 0) self.track = loader.loadModel("../Models/Track.egg") ...

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