samples/13_path_finding_algorithms/07_heuristic_with_walls/app/main.rb
# Controls the play/pause button
# Inverses whether the animation is playing or not when clicked
Controls the play/pause button
Inverses whether the animation is playing or not when clicked
Controls the play / pause button Inverses whether the animation is playing or not when clicked
def input_center_button
    if center_button_clicked? || inputs.keyboard.key_down.space
      state.play = !state.play
    end
  end
def input_center_button if center_button_clicked? || inputs . keyboard . key_down . space state . play = ! state . play end end
Controls the play/pause button
Inverses whether the animation is playing or not when clicked
Controls the play / pause button Inverses whether the animation is playing or not when clicked