Module: Jumper
- Included in:
- Actor
- Defined in:
- lib/fantasy/includes/jumper.rb
Instance Method Summary collapse
Instance Method Details
#jump ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/fantasy/includes/jumper.rb', line 4 def jump impulse(direction: Coordinates.up, force: @jump_force) @jumping = true @on_floor = false on_jumping_do end |