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

Handling damage response

Before we finish up this chapter, we need to add the elements that will handle damage response to our game. Otherwise, all the guns are meaningless. Here's a list of the things we'll add before we wrap up:

  • Damage impacting shield strength: This is one of the core things we need, to reduce shield strength when the cycle takes damage.
  • Shield and energy recharge: A cycle's shield and energy levels need to be recharged over time, so we'll add in a method to handle that for us.
  • Stability: To keep races tighter and more interesting, we'll add in a system that causes cycles to slow down when they get damaged. That way cycles at the back have a means to slow the cycles up front and catch up to them.
  • Emergency shut down: Because we ...

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