diff --git a/_subsections/sec03/lesson-16.org b/_subsections/sec03/lesson-16.org new file mode 100644 index 0000000..ce23fc8 --- /dev/null +++ b/_subsections/sec03/lesson-16.org @@ -0,0 +1,19 @@ +#+HTML_HEAD: +#+HTML_HEAD: +#+title: Section 03 - Lesson 16, 17 | Game Over, Sound End Game + +* Links +- [[../../toc.org][TOC - Godot Notes]] +- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45070491#announcements][S03:L27.16 - Game Over]] +- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45070493#announcements][S03:L28.17 - Sound / End of Game]] + +* Notes + +** stopping the game +1. create a function that handles all cleanup + 1. stop the timer + - drag + CMD and drop Timer to create a reference + - timer.stop + 2. set all node children process to false + - Node function =get_children= will get them all3 + - iterate through them and =set_process(false)= diff --git a/toc.org b/toc.org index 17a9bb8..7043f34 100644 --- a/toc.org +++ b/toc.org @@ -21,3 +21,4 @@ https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginn *** [[./_subsections/sec03/lesson-11.org][Lesson 11, 12 | Signals, Custom Signals]] *** [[./_subsections/sec03/lesson-13.org][Lesson 13, 14 | Spawn Timer, Spawning items]] *** [[./_subsections/sec03/lesson-15.org][Lesson 15 | Scoring]] +*** [[./_subsections/sec03/lesson-16.org][Lesson 16, 17 | Game Over, Sound / End Game]]