finished end game, added sound end game

This commit is contained in:
ronny abraham 2024-11-24 21:26:35 +02:00
parent 596cd6f145
commit 7e2d616ec0
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#+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)=

View file

@ -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-11.org][Lesson 11, 12 | Signals, Custom Signals]]
*** [[./_subsections/sec03/lesson-13.org][Lesson 13, 14 | Spawn Timer, Spawning items]] *** [[./_subsections/sec03/lesson-13.org][Lesson 13, 14 | Spawn Timer, Spawning items]]
*** [[./_subsections/sec03/lesson-15.org][Lesson 15 | Scoring]] *** [[./_subsections/sec03/lesson-15.org][Lesson 15 | Scoring]]
*** [[./_subsections/sec03/lesson-16.org][Lesson 16, 17 | Game Over, Sound / End Game]]