adding nodes and inheritance

This commit is contained in:
ronny abraham 2024-11-10 00:37:55 +02:00
parent d4ea27fcd8
commit 89033ade20
3 changed files with 39 additions and 0 deletions

View file

@ -8,3 +8,31 @@
- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45303177#overview][S03:L13.05 - Windows and Viewports]]
* Notes
when running the game godot creates a window
and within that window is a child of it called a viewport which is the rendering surface
it initially fits inside the window
we frequently ask for the "visible rect" within the viewport
key properties are origin, height and width
we can move the viewport by changing the viewport origin
** changing window size
when the window is changed in size, the viewport is grown as opposed to stretched
there are options to change the scaling types.
** what is rendered
the viewport renders a single visual root scene at a time
this root has a scene playing on it.
get_tree().root - the root of the tree
a root can have a number of scenes, but only one is being rendered
we can change the scene being shown or rendered.
** subviewports
you can add scenes with their own sub viewports, e.g. mini maps

View file

@ -0,0 +1,10 @@
#+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 06 | Nodes and Inheritance
* Links
- [[../../toc.org][TOC - Godot Notes]]
- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45070465#overview][S03:L14.06 - Nodes and Inheritance]]
* Notes

View file

@ -15,3 +15,4 @@ https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginn
*** [[./_subsections/sec03/lesson-03.org][Lesson 03 | Paddle Scene]]
*** [[./_subsections/sec03/lesson-04.org][Lesson 04 | Gem Scene]]
*** [[./_subsections/sec03/lesson-05.org][Lesson 05 | Windows and Viewports]]
*** [[./_subsections/sec03/lesson-06.org][Lesson 06 | Nodes and Inheritance]]