diff options
| author | Simon Chiang <[email protected]> | 2021-04-23 09:46:41 -0600 |
|---|---|---|
| committer | Amir Rajan <[email protected]> | 2021-05-26 16:08:45 -0500 |
| commit | d5115606c96b0fe0affd72e6e0b72edce7e51042 (patch) | |
| tree | 5d750d974dc947163dc4cb37a0c9bbac9266a207 /samples/13_path_finding_algorithms | |
| parent | 1404fd05a99cf745c33a4316b9d5e1562083c3ae (diff) | |
| download | dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.tar.gz dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.zip | |
Typo fixes
Diffstat (limited to 'samples/13_path_finding_algorithms')
4 files changed, 4 insertions, 4 deletions
diff --git a/samples/13_path_finding_algorithms/01_breadth_first_search/app/main.rb b/samples/13_path_finding_algorithms/01_breadth_first_search/app/main.rb index 7f98509..c8e1633 100644 --- a/samples/13_path_finding_algorithms/01_breadth_first_search/app/main.rb +++ b/samples/13_path_finding_algorithms/01_breadth_first_search/app/main.rb @@ -251,7 +251,7 @@ class BreadthFirstSearch outputs.primitives << [slider.x, slider.y, slider.x + slider.w, slider.y].line # The circle needs to be offset so that the center of the circle # overlaps the line instead of the upper right corner of the circle - # The circle's x value is also moved based on the current seach step + # The circle's x value is also moved based on the current search step 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] diff --git a/samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb b/samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb index 810ff7b..d4c9c1c 100644 --- a/samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb +++ b/samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb @@ -168,7 +168,7 @@ class DetailedBreadthFirstSearch outputs.primitives << [slider.x, slider.y, slider.x + slider.w, slider.y].line # The circle needs to be offset so that the center of the circle # overlaps the line instead of the upper right corner of the circle - # The circle's x value is also moved based on the current seach step + # The circle's x value is also moved based on the current search step 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] diff --git a/samples/13_path_finding_algorithms/06_heuristic/app/main.rb b/samples/13_path_finding_algorithms/06_heuristic/app/main.rb index af466a5..10beba3 100644 --- a/samples/13_path_finding_algorithms/06_heuristic/app/main.rb +++ b/samples/13_path_finding_algorithms/06_heuristic/app/main.rb @@ -242,7 +242,7 @@ class Heuristic_With_Walls outputs.primitives << [slider.x, slider.y, slider.x + slider.w, slider.y].line # The circle needs to be offset so that the center of the circle # overlaps the line instead of the upper right corner of the circle - # The circle's x value is also moved based on the current seach step + # The circle's x value is also moved based on the current search step circle_x = (slider.x - slider.offset) + (state.current_step * slider.spacing) circle_y = (slider.y - slider.offset) circle_rect = [circle_x, circle_y, 37, 37] diff --git a/samples/13_path_finding_algorithms/07_heuristic_with_walls/app/main.rb b/samples/13_path_finding_algorithms/07_heuristic_with_walls/app/main.rb index 5fc0804..7b8f653 100644 --- a/samples/13_path_finding_algorithms/07_heuristic_with_walls/app/main.rb +++ b/samples/13_path_finding_algorithms/07_heuristic_with_walls/app/main.rb @@ -275,7 +275,7 @@ class Heuristic outputs.primitives << [slider.x, slider.y, slider.x + slider.w, slider.y].line # The circle needs to be offset so that the center of the circle # overlaps the line instead of the upper right corner of the circle - # The circle's x value is also moved based on the current seach step + # The circle's x value is also moved based on the current search step circle_x = (slider.x - slider.offset) + (state.current_step * slider.spacing) circle_y = (slider.y - slider.offset) circle_rect = [circle_x, circle_y, 37, 37] |
