compsci_godot_albert/_subsections/sec03/lesson-02.org
2024-11-29 06:41:22 +02:00

1.3 KiB

Section 03 - Lesson 02 | Game Scene

Notes

create

  1. Forward for advanced desktop graphics
  2. Mobile standard tablets, phones, etc
  3. 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