Module: MoveByDirection
- Included in:
- Actor
- Defined in:
- lib/fantasy/includes/move_by_direction.rb
Instance Method Summary collapse
Instance Method Details
#move_by_direction ⇒ Object
4 5 6 |
# File 'lib/fantasy/includes/move_by_direction.rb', line 4 def move_by_direction @position += @direction * @speed * Global.frame_time end |