diff --git a/main.tscn b/main.tscn index 0f56aad..a845595 100644 --- a/main.tscn +++ b/main.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=13 format=3 uid="uid://cc2dnhuv4qx7m"] +[gd_scene load_steps=14 format=3 uid="uid://cc2dnhuv4qx7m"] [ext_resource type="Script" uid="uid://c51huloycn5as" path="res://main.gd" id="1_h2yge"] [ext_resource type="Texture2D" uid="uid://jj8b7vqj3ihx" path="res://Mini Pixel Pack 3/Space_BG (2 frames) (64 x 64).png" id="1_ig7tw"] +[ext_resource type="PackedScene" uid="uid://tlcdxoupi2lb" path="res://parallax_starfield.tscn" id="2_5vw27"] [ext_resource type="PackedScene" uid="uid://s6wf3egdqtmh" path="res://ui.tscn" id="4_1bvp3"] [ext_resource type="Texture2D" uid="uid://db2v7dea5wi4" path="res://title - no border.png" id="4_7mycd"] [ext_resource type="Shader" uid="uid://x02irwg8ynvp" path="res://pixel_highlight.gdshader" id="4_272bh"] @@ -60,7 +61,10 @@ shader_parameter/pixelate_line = 0 [node name="Main" type="Node2D"] script = ExtResource("1_h2yge") +[node name="Parallax Starfield" parent="." instance=ExtResource("2_5vw27")] + [node name="background" type="Sprite2D" parent="."] +visible = false z_index = -4 texture_repeat = 2 material = SubResource("ShaderMaterial_5vw27") diff --git a/parallax/background stars.png b/parallax/background stars.png new file mode 100644 index 0000000..88cf459 Binary files /dev/null and b/parallax/background stars.png differ diff --git a/parallax/background stars.png.import b/parallax/background stars.png.import new file mode 100644 index 0000000..aa8a6ad --- /dev/null +++ b/parallax/background stars.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bn5iw6fm88p2i" +path="res://.godot/imported/background stars.png-844e616782bec8464721a90faeb774cb.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://parallax/background stars.png" +dest_files=["res://.godot/imported/background stars.png-844e616782bec8464721a90faeb774cb.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/parallax/foreground stars.png b/parallax/foreground stars.png new file mode 100644 index 0000000..6aeb5e0 Binary files /dev/null and b/parallax/foreground stars.png differ diff --git a/parallax/foreground stars.png.import b/parallax/foreground stars.png.import new file mode 100644 index 0000000..8f9b53a --- /dev/null +++ b/parallax/foreground stars.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dpkeiihfos28m" +path="res://.godot/imported/foreground stars.png-ac6421cf56a60f87749797466fb3036c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://parallax/foreground stars.png" +dest_files=["res://.godot/imported/foreground stars.png-ac6421cf56a60f87749797466fb3036c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/parallax/foreground stars_b.png b/parallax/foreground stars_b.png new file mode 100644 index 0000000..c38b9cf Binary files /dev/null and b/parallax/foreground stars_b.png differ diff --git a/parallax/foreground stars_b.png.import b/parallax/foreground stars_b.png.import new file mode 100644 index 0000000..59f761f --- /dev/null +++ b/parallax/foreground stars_b.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://4n7q1wsq13ub" +path="res://.godot/imported/foreground stars_b.png-338a0e256be6f9b89fec689220b03e10.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://parallax/foreground stars_b.png" +dest_files=["res://.godot/imported/foreground stars_b.png-338a0e256be6f9b89fec689220b03e10.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/parallax/midground stars.png b/parallax/midground stars.png new file mode 100644 index 0000000..c31081a Binary files /dev/null and b/parallax/midground stars.png differ diff --git a/parallax/midground stars.png.import b/parallax/midground stars.png.import new file mode 100644 index 0000000..2acf07c --- /dev/null +++ b/parallax/midground stars.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c855276xbf7g6" +path="res://.godot/imported/midground stars.png-6f7b61cb3d46b7ae23c01472332a96f4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://parallax/midground stars.png" +dest_files=["res://.godot/imported/midground stars.png-6f7b61cb3d46b7ae23c01472332a96f4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/parallax_starfield.tscn b/parallax_starfield.tscn new file mode 100644 index 0000000..fa61075 --- /dev/null +++ b/parallax_starfield.tscn @@ -0,0 +1,66 @@ +[gd_scene load_steps=5 format=3 uid="uid://tlcdxoupi2lb"] + +[ext_resource type="Texture2D" uid="uid://dpkeiihfos28m" path="res://parallax/foreground stars.png" id="1_1f8kc"] +[ext_resource type="Texture2D" uid="uid://4n7q1wsq13ub" path="res://parallax/foreground stars_b.png" id="2_mewf1"] +[ext_resource type="Texture2D" uid="uid://c855276xbf7g6" path="res://parallax/midground stars.png" id="2_xwl8n"] +[ext_resource type="Texture2D" uid="uid://bn5iw6fm88p2i" path="res://parallax/background stars.png" id="3_mewf1"] + +[node name="Parallax Starfield" type="Node2D"] + +[node name="Foreground Stars" type="Parallax2D" parent="."] +scroll_scale = Vector2(1.5, 1) +scroll_offset = Vector2(52, 11) +repeat_size = Vector2(0, 128) +autoscroll = Vector2(0, 9) +repeat_times = 5 + +[node name="Sprite2D" type="Sprite2D" parent="Foreground Stars"] +modulate = Color(0.6524728, 0.65247285, 0.6524728, 1) +texture_repeat = 2 +position = Vector2(89, 133) +texture = ExtResource("1_1f8kc") +region_enabled = true +region_rect = Rect2(0, 0, 128, 32) + +[node name="Foreground Stars_b" type="Parallax2D" parent="."] +repeat_size = Vector2(0, 320) +autoscroll = Vector2(0, 7) +repeat_times = 5 + +[node name="Sprite2D" type="Sprite2D" parent="Foreground Stars_b"] +modulate = Color(0.71867925, 0.71867925, 0.71867925, 1) +texture_repeat = 2 +position = Vector2(151, 59) +texture = ExtResource("2_mewf1") +region_enabled = true +region_rect = Rect2(0, 0, 128, 32) + +[node name="Midground Stars" type="Parallax2D" parent="."] +scroll_scale = Vector2(0.75, 1) +repeat_size = Vector2(0, 320) +autoscroll = Vector2(0, 5) + +[node name="Sprite2D" type="Sprite2D" parent="Midground Stars"] +texture_repeat = 2 +position = Vector2(120, 160) +texture = ExtResource("2_xwl8n") +region_enabled = true +region_rect = Rect2(0, 0, 240, 320) + +[node name="Background Stars" type="Parallax2D" parent="."] +scroll_scale = Vector2(-1, 1) +repeat_size = Vector2(0, 320) +autoscroll = Vector2(0, 2) + +[node name="Sprite2D" type="Sprite2D" parent="Background Stars"] +texture_repeat = 2 +position = Vector2(120, 160) +texture = ExtResource("3_mewf1") +region_enabled = true +region_rect = Rect2(0, 0, 240, 320) + +[node name="ColorRect" type="ColorRect" parent="."] +z_index = -5 +offset_right = 239.0 +offset_bottom = 323.0 +color = Color(0, 0, 0, 1)