added lesson4 create a gem scene
This commit is contained in:
parent
decb448691
commit
428768ea0e
2 changed files with 49 additions and 0 deletions
39
_subsections/sec03/lesson-04.org
Normal file
39
_subsections/sec03/lesson-04.org
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#+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 04 | Gem Scene
|
||||
|
||||
* Links
|
||||
- [[../../toc.org][TOC - Godot Notes]]
|
||||
- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45070461#overview][S03:L12.04 - Gem Scene]]
|
||||
|
||||
* Notes
|
||||
|
||||
** quick recap
|
||||
|
||||
*** create a Gem Scene
|
||||
|
||||
1. Create a new Scene
|
||||
- instead of hitting 2D, hit "+" and choose Area2D
|
||||
|
||||
2. Create a Sprite2D child
|
||||
- get element_red_diamond.png
|
||||
- Sprite2D->Inspector->Sprite2D->Texture
|
||||
|
||||
3. Create a CollisionShape2D child under Sprite2D
|
||||
- Inspector->CollisionShape2D->shape , choose RectangleShape2D
|
||||
|
||||
4. Rotate the CollisionShape2D 45 degrees
|
||||
- Inspector->Node2D->Transform->Rotation
|
||||
- set rotation to 45
|
||||
|
||||
5. Increase the size of the collision shape
|
||||
- Inspector->CollisionShape2D->Shape click INSIDE the dropdown area
|
||||
- it will show size, set the size to 35, 35
|
||||
|
||||
*** add the Gem Scene to the Game
|
||||
|
||||
1. Go to the Game scene
|
||||
2. Hit the "Instatiate Child Scene" button or press Shift+Command+A
|
||||
3. Add the Gem Scene as a node
|
||||
4. Move the object somewhere else on the screen
|
||||
10
_subsections/sec03/lesson-05.org
Normal file
10
_subsections/sec03/lesson-05.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 05 | Windows and Viewports
|
||||
|
||||
* Links
|
||||
- [[../../toc.org][TOC - Godot Notes]]
|
||||
- [[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
|
||||
Loading…
Add table
Reference in a new issue