godot-shooter / starfield-background / files / StarField.tscn
Branch starfield-background · default branch · all branches
StarField.tscn
| 1 | [gd_scene load_steps=7 format=2] |
| 2 | |
| 3 | [ext_resource path="res://kenney_simple-space/PNG/Default/star_medium.png" type="Texture" id=1] |
| 4 | |
| 5 | [sub_resource type="Gradient" id=1] |
| 6 | offsets = PoolRealArray( 0, 0.325137, 0.669399, 0.997268 ) |
| 7 | colors = PoolColorArray( 1, 1, 1, 1, 0.0078125, 0, 1, 1, 1, 0, 0.0234375, 1, 1, 1, 1, 1 ) |
| 8 | |
| 9 | [sub_resource type="GradientTexture" id=2] |
| 10 | gradient = SubResource( 1 ) |
| 11 | |
| 12 | [sub_resource type="Curve" id=3] |
| 13 | _data = [ Vector2( 0, 0 ), 0.0, 0.0932435, 0, 0, Vector2( 0.294686, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.492754, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.743961, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ] |
| 14 | |
| 15 | [sub_resource type="CurveTexture" id=4] |
| 16 | curve = SubResource( 3 ) |
| 17 | |
| 18 | [sub_resource type="ParticlesMaterial" id=5] |
| 19 | emission_shape = 2 |
| 20 | emission_box_extents = Vector3( 1000, 1000, 0 ) |
| 21 | flag_disable_z = true |
| 22 | gravity = Vector3( 0, 0, 0 ) |
| 23 | orbit_velocity = 0.0 |
| 24 | orbit_velocity_random = 0.0 |
| 25 | angle = 720.0 |
| 26 | angle_random = 1.0 |
| 27 | scale_curve = SubResource( 4 ) |
| 28 | color_ramp = SubResource( 2 ) |
| 29 | |
| 30 | [node name="StarField" type="Particles2D"] |
| 31 | amount = 100 |
| 32 | lifetime = 6.0 |
| 33 | process_material = SubResource( 5 ) |
| 34 | texture = ExtResource( 1 ) |