mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2024-11-24 21:18:21 -05:00
Made the stars background its own scene to use in two places
This commit is contained in:
parent
52d7d4bc07
commit
b8cdc82888
21
scenes/stars.tscn
Normal file
21
scenes/stars.tscn
Normal file
@ -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")
|
Loading…
Reference in New Issue
Block a user