Options
All
  • Public
  • Public/Protected
  • All
Menu

Kill type constants for Weapon.bulletKillType

Index

Enumeration Members

KILL_CAMERA_BOUNDS: 4

A bulletKillType constant that automatically kills the bullets when they leave the Camera.getBounds rectangle.

KILL_DISTANCE: 2

A bulletKillType constant that automatically kills the bullets after they exceed the Weapon.bulletKillDistance from their original firing position.

KILL_LIFESPAN: 1

A bulletKillType constant that automatically kills the bullets when their Weapon.bulletLifespan expires.

KILL_NEVER: 0

A bulletKillType constant that stops the bullets from ever being destroyed automatically.

KILL_STATIC_BOUNDS: 6

A Weapon.bulletKillType constant that automatically kills the bullets when they leave the Weapon.bounds rectangle. The difference between static bounds and weapon bounds, is that a static bounds will never be adjusted to match the position of a tracked sprite or pointer.

KILL_WEAPON_BOUNDS: 3

A bulletKillType constant that automatically kills the bullets when they leave the Weapon.bounds rectangle.

KILL_WORLD_BOUNDS: 5

A bulletKillType constant that automatically kills the bullets when they leave the World.bounds rectangle.

Generated using TypeDoc