Module entity.bullet

Object fired by Weapon objects, subclass of Entity .

Texto alternativo

SPEED  = 250
DAMAGE = 25
STATE  = 'bullet'

Class Bullet

Bullet:initialize (weapon, aimVector) Initialize the object Bullet .
Bullet:update (dt) Update stage.
Bullet:draw () Draw stage.


Class Bullet

Bullet Class, subclass of Entity
Bullet:initialize (weapon, aimVector)
Initialize the object Bullet .

Don’t call this method directly!, this method is called automatically when the class is instanciated using the method new.

Parameters:

  • weapon Weapon object who fire this bullet
  • aimVector direction vector

Usage:

    Bullet:new(weapon,aimVector)
Bullet:update (dt)
Update stage.

Parameters:

  • dt delta time
Bullet:draw ()
Draw stage.
generated by LDoc 1.3.12