Asteroids

A Panda3D remake of the popular Asteroids game

Advanced

This sample program shows how to use Tasks. Tasks are functions that run during every frame of the program. Panda3D runs a number of tasks during any program, but additional tasks may be added. For this tutorial, tasks will be used to update the ship, asteriod and bullet positions, in addition to checking for collisions. To do this, all the data you need to know is how much time has passed and the velocity of each object.

NOTE: Adding lots of processor intensive tasks will have an adverse affect on the framerate/performance of your program.

For more information on tasks, please consult the Tasks section of the manual.
Download Demo File (.p3d)
Return To Demo List