Home | About | Forum | Manual | Download | Screenshots

Vehicle

Vehicle inherits all of the functionality of a sprite. The primary difference is that vehicle introduces a variety of movement-related properties and methods.

Interface

    Properties

  • Point acceleration
    Vector describing the rate of change in velocity
  • number max_velocity
    Maximum length to which the vehicle's vector is truncated
  • Point velocity
    Vector describing the rate of change in position

    Constructors

  • Vehicle ( )
  • Vehicle ( Point pt )
    Vehicle ( number pos_x, number pos_y )
    Creates a new vehicle at a specified position in world coordinates

    Constant Methods

    Non-Constant Methods