samples/13_path_finding_algorithms/08_a_star/app/main.rb
# This method handles user input every tick
This method handles user input every tick
This method handles user input every tick
def input
    if inputs.mouse.up
      state.user_input = :none
    end
    if inputs.mouse.down
      determine_input
    end
    process_input
  end
def input if inputs . mouse . up state . user_input = :none end if inputs . mouse . down determine_input end process_input end
This method handles user input every tick
This method handles user input every tick
# If the mouse was lifted this tick # Set current input to none # If the mouse was clicked this tick # Determine what the user is editing and appropriately edit the state.user_input variable # Process user input based on user_input variable and current mouse position