Star Parallax

This commit is contained in:
R34nd0 2024-01-13 19:21:55 +05:00
commit a1e0c3f8a7
5 changed files with 31 additions and 13 deletions

View file

@ -3,7 +3,20 @@
[ext_resource type="Script" path="res://scripts/misc/StarsGeneration.gd" id="1_rcdwc"]
[ext_resource type="PackedScene" uid="uid://kyuhwil8vq7n" path="res://scenes/Star.tscn" id="2_ypr5c"]
[node name="Stars" type="Node2D"]
[node name="Stars" type="ParallaxBackground"]
process_mode = 1
layer = -5
scroll_ignore_camera_zoom = true
script = ExtResource("1_rcdwc")
star = ExtResource("2_ypr5c")
[node name="CloseStars" type="ParallaxLayer" parent="."]
scale = Vector2(2, 2)
motion_scale = Vector2(0.9, 0.9)
[node name="DistinctStars" type="ParallaxLayer" parent="."]
scale = Vector2(1.5, 1.5)
motion_scale = Vector2(0.5, 0.5)
[node name="FarAwayStars" type="ParallaxLayer" parent="."]
motion_scale = Vector2(0.1, 0.1)