-
Book Overview & Buying
-
Table Of Contents
Panda3D 1.7 Game Developer's Cookbook
While there is beauty in static images, and they add much to the world of games, in modern video games, action is typically the focus. Today's games are usually very dynamic, having the player and non-player characters moving through scenes containing stacks of crates that can be tossed around, dynamic obstacles such as moving platforms, or flocks of birds that are just there to make a level more compelling.
In this recipe you will learn to make things move around in your scenes and how to use the time that has passed as a parameter for creating the illusion of movement.
We will be using and extending the code created in the recipe Modifying the scene graph, so please take a step back and follow that tip before you haven't already tried that recipe.
It's time to get things moving. Let's animate the scene:
Open Application.py and below the last line of code created in Modifying the scene graph, which is marked here, add the following lines...
Change the font size
Change margin width
Change background colour