From b8cdc828883cb16a4ff5c417aaac93d7767d6a48 Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Mon, 13 May 2024 20:02:10 -0400 Subject: [PATCH] Made the stars background its own scene to use in two places --- scenes/stars.tscn | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scenes/stars.tscn diff --git a/scenes/stars.tscn b/scenes/stars.tscn new file mode 100644 index 0000000..1a0c4af --- /dev/null +++ b/scenes/stars.tscn @@ -0,0 +1,21 @@ +[gd_scene load_steps=4 format=3 uid="uid://cemhlom425afn"] + +[ext_resource type="Texture2D" uid="uid://chuygpyfe3y10" path="res://assets/img/star.png" id="1_0837q"] + +[sub_resource type="Curve" id="Curve_8qyxb"] +_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.606742, 1), 0.052866, 0.052866, 0, 0, Vector2(1, 0.615385), 0.0, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="Gradient" id="Gradient_rnjki"] +offsets = PackedFloat32Array(0, 0.406667, 0.84) +colors = PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1) + +[node name="Stars" type="CPUParticles2D"] +amount = 64 +lifetime = 5.0 +texture = ExtResource("1_0837q") +emission_shape = 3 +emission_rect_extents = Vector2(1200, 700) +gravity = Vector2(0, 0) +scale_amount_curve = SubResource("Curve_8qyxb") +color_ramp = SubResource("Gradient_rnjki")