samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb
# Signal that the user is going to be moving the slider
Signal that the user is going to be moving the slider
Signal that the user is going to be moving the slider
def slider_clicked?
    circle_x = (slider.x - slider.offset) + (state.anim_steps * slider.spacing)
    circle_y = (slider.y - slider.offset)
    circle_rect = [circle_x, circle_y, 37, 37]
    inputs.mouse.down && inputs.mouse.point.inside_rect?(circle_rect)
  end
def slider_clicked? circle_x = ( slider . x - slider . offset ) + ( state . anim_steps * slider . spacing ) circle_y = ( slider . y - slider . offset ) circle_rect = [ circle_x , circle_y , 37 , 37 ] inputs . mouse . down && inputs . mouse . point . inside_rect? ( circle_rect ) end
Signal that the user is going to be moving the slider
Signal that the user is going to be moving the slider