Method: Actor#direction

Defined in:
lib/fantasy/actor.rb

#directionCoordinates

Note:

The the pixels per second is represented by the @speed attribute

Controls the direction in which this Actor will move in the next frame.

Default Coordinates.zero.

Examples:

Set direction

actor = Actor.new("image")
actor.direction = Coordinates.right

Returns:



96
97
98
# File 'lib/fantasy/actor.rb', line 96

def direction
  @direction
end