fuzzyworld

godot-shooter / commit

Added star background.

5156ba97da809a0d641403488b16667173564069 · Pavel Safronov · 2023-11-05 17:58:45 -0800 · parents ba3492ae8056

Added star background.
 Smoke.tscn     | 5 +++--
 StarField.tscn | 4 ++--
 World.tscn     | 2 --
 project.godot  | 2 +-
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/Smoke.tscn b/Smoke.tscn
index ec62816..a48de17 100644
--- a/Smoke.tscn
+++ b/Smoke.tscn
@@ -6,7 +6,9 @@
 _data = [ Vector2( 0, 0.0945946 ), 0.0, 0.0, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
 
 [sub_resource type="Gradient" id=2]
-colors = PoolColorArray( 0, 0, 0, 1, 1, 1, 1, 0 )
+interpolation_mode = 2
+offsets = PoolRealArray( 0, 0.992341, 1 )
+colors = PoolColorArray( 1, 0.305882, 0, 1, 0.364706, 0.364706, 0.364706, 0.419608, 1, 1, 1, 0 )
 
 [node name="Smoke" type="Node2D"]
 
@@ -23,5 +25,4 @@ tangential_accel = 100.0
 damping = 5.91
 damping_random = 0.25
 scale_amount_curve = SubResource( 1 )
-color = Color( 0.427451, 0.427451, 0.427451, 0.258824 )
 color_ramp = SubResource( 2 )
diff --git a/StarField.tscn b/StarField.tscn
index bcdd2f0..4cc569a 100644
--- a/StarField.tscn
+++ b/StarField.tscn
@@ -17,6 +17,7 @@ _data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.256659, 1 ), 0.0, 0.0, 0,
 
 [node name="Polygon2D" type="Polygon2D" parent="."]
 visible = false
+position = Vector2( -1024, -600 )
 antialiased = true
 texture = SubResource( 6 )
 invert_enable = true
@@ -24,13 +25,12 @@ invert_border = 5.0
 polygon = PoolVector2Array( 0, 0, 2048, 0, 2048, 1200, 0, 1200 )
 
 [node name="StarField" type="CPUParticles2D" parent="."]
-position = Vector2( 2048, 1200 )
 amount = 200
 lifetime = 10.0
 preprocess = 191.72
 texture = ExtResource( 1 )
 emission_shape = 2
-emission_rect_extents = Vector2( 2048, 1200 )
+emission_rect_extents = Vector2( 1024, 600 )
 gravity = Vector2( 0, 0 )
 angular_velocity = 50.0
 angular_velocity_random = 1.0
diff --git a/World.tscn b/World.tscn
index 8900c59..f55b6a8 100644
--- a/World.tscn
+++ b/World.tscn
@@ -15,10 +15,8 @@ script = ExtResource( 4 )
 enemy_count = 3
 
 [node name="CanvasLayer2" type="CanvasLayer" parent="."]
-visible = false
 
 [node name="ParallaxBackground" type="ParallaxBackground" parent="CanvasLayer2"]
-visible = false
 scroll_ignore_camera_zoom = true
 
 [node name="Foreground" type="ParallaxLayer" parent="CanvasLayer2/ParallaxBackground"]
diff --git a/project.godot b/project.godot
index f80d32c..ed90e82 100644
--- a/project.godot
+++ b/project.godot
@@ -82,5 +82,5 @@ common/enable_pause_aware_picking=true
 [rendering]
 
 vram_compression/import_etc=true
-environment/default_clear_color=Color( 0.431373, 0.572549, 1, 1 )
+environment/default_clear_color=Color( 0, 0, 0, 1 )
 environment/default_environment="res://default_env.tres"