Method: Camera#speed

Defined in:
lib/fantasy/camera.rb

#speedFloat

Note:

The the direction is represented by the @direction attribute

Controls the pixels per second which the Camera will move in the next frame.

Default 0.

Examples:

Set speed

Camera.main.speed = 10

Returns:

  • (Float)

    the actual speed



63
64
65
# File 'lib/fantasy/camera.rb', line 63

def speed
  @speed
end