Method: Actor#jump_force

Defined in:
lib/fantasy/actor.rb

#jump_forceFloat

Note:

The the direction will be Coordinates.up

Controls impulse this Actor will receive when the (see #jump) is triggered.

Default 0.

Examples:

Set jump_force

actor = Actor.new("image")
actor.jump_force = 100

Returns:

  • (Float)

    the actual jump_force



122
123
124
# File 'lib/fantasy/actor.rb', line 122

def jump_force
  @jump_force
end