Created Parallax2D background nodes from existing starfield background.
This commit is contained in:
parent
4dd7a7435b
commit
7a0ea55ff1
10 changed files with 231 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
BIN
parallax/background stars.png
Normal file
BIN
parallax/background stars.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 606 B |
40
parallax/background stars.png.import
Normal file
40
parallax/background stars.png.import
Normal file
|
|
@ -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
|
||||
BIN
parallax/foreground stars.png
Normal file
BIN
parallax/foreground stars.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
40
parallax/foreground stars.png.import
Normal file
40
parallax/foreground stars.png.import
Normal file
|
|
@ -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
|
||||
BIN
parallax/foreground stars_b.png
Normal file
BIN
parallax/foreground stars_b.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 595 B |
40
parallax/foreground stars_b.png.import
Normal file
40
parallax/foreground stars_b.png.import
Normal file
|
|
@ -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
|
||||
BIN
parallax/midground stars.png
Normal file
BIN
parallax/midground stars.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 585 B |
40
parallax/midground stars.png.import
Normal file
40
parallax/midground stars.png.import
Normal file
|
|
@ -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
|
||||
66
parallax_starfield.tscn
Normal file
66
parallax_starfield.tscn
Normal file
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue