2024-11-06 02:22:52 +02:00
|
|
|
#+title: Section 03 - Lesson 02 | Game Scene
|
2024-11-29 06:41:22 +02:00
|
|
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../../_share/media/css/godot.css" />
|
2024-11-06 02:22:52 +02:00
|
|
|
|
|
|
|
|
* Links
|
|
|
|
|
- [[../../toc.org][TOC - Godot Notes]]
|
|
|
|
|
- [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45070457#overview][S03:L10.02 - Game Scene]]
|
|
|
|
|
|
|
|
|
|
* Notes
|
|
|
|
|
|
|
|
|
|
** create
|
|
|
|
|
a. Forward
|
|
|
|
|
for advanced desktop graphics
|
|
|
|
|
|
|
|
|
|
b. Mobile
|
|
|
|
|
standard tablets, phones, etc
|
|
|
|
|
|
|
|
|
|
c. Compatibility
|
|
|
|
|
- if your computer doesn't have a "vulcan renderer" you'll need the compatibility mode
|
|
|
|
|
- sometimes if parallax doesn't work, use compatibility mode
|
|
|
|
|
|
|
|
|
|
** nodes
|
|
|
|
|
starts with a root node, and adds child nodes
|
|
|
|
|
|
|
|
|
|
*** start it up
|
|
|
|
|
- go to the left panel and click 2D Scene
|
|
|
|
|
- CMD+S to save the scene
|
|
|
|
|
- if you have assets, you can drag and drop the folder into the lower left pane
|
|
|
|
|
|
|
|
|
|
*** add a sprite node
|
|
|
|
|
1. Go to ScenePane, click the '+', select Sprite2D node
|
|
|
|
|
2. select the Sprite2D node
|
|
|
|
|
3. from the assets folder in the FileSystem pane, pick a graphic and move it to Inspector-Sprite2D-Texture
|
|
|
|
|
|
|
|
|
|
*** modify the texture image
|
|
|
|
|
- to scale the node, go to Inspector-Node2D-Transform-Scale
|
|
|
|
|
|
|
|
|
|
*** change which is the default scene run
|
|
|
|
|
1. you can set the default scene by hitting run and choosing a scene
|
|
|
|
|
2. Propect-Project Settings-Run and choose there
|