adding nodes and inheritance
This commit is contained in:
parent
d4ea27fcd8
commit
89033ade20
3 changed files with 39 additions and 0 deletions
|
|
@ -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]]
|
- [[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
|
* 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
|
||||||
|
|
|
||||||
10
_subsections/sec03/lesson-06.org
Normal file
10
_subsections/sec03/lesson-06.org
Normal 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
|
||||||
1
toc.org
1
toc.org
|
|
@ -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-03.org][Lesson 03 | Paddle Scene]]
|
||||||
*** [[./_subsections/sec03/lesson-04.org][Lesson 04 | Gem Scene]]
|
*** [[./_subsections/sec03/lesson-04.org][Lesson 04 | Gem Scene]]
|
||||||
*** [[./_subsections/sec03/lesson-05.org][Lesson 05 | Windows and Viewports]]
|
*** [[./_subsections/sec03/lesson-05.org][Lesson 05 | Windows and Viewports]]
|
||||||
|
*** [[./_subsections/sec03/lesson-06.org][Lesson 06 | Nodes and Inheritance]]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue