1.7 KiB
1.7 KiB
Section 04 - Lesson 01 | Project Setup & Aspect
Notes
setting up
- root node: plain Node2D
- add as Sprite2D for background
-
change aspect ration to 480*854 Portrait
- this is the recommended ratio for mobile
- copy assets to the FileSystem pane under res://
making the background
- you add a Sprite2D node to the Node2D
- drag the image you want from res:// to the texture property in the Sprite2D inspector
set the current default run scene
there are two ways to do this
- hit "run" and select the current scene
-
via Project Settings
- go to Project->Project Settings
- go to Application->Run->Main Scene
-
pick the scene you want to put in there
set up aspect ratio
set the values
- Project->Project Settings
- Display->Window
-
In 'Size'
- set width 480
- set height to 854
viewport changes
- the white line representing the viewport changes shape
-
move the background image appropriately with the view tool