compsci_godot_albert/_subsections/sec03/lesson-16.org

20 lines
957 B
Org Mode
Raw Normal View History

#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../../../../../_share/media/css/org-mode.css" />
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../../../_share/media/css/godot.css" />
#+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)=