Completely redesigned the parallax scrolling with clouds; added Maggie's

welcome sound on new game.
This commit is contained in:
Henry 2026-02-12 23:10:13 +00:00
parent c5a25cb33a
commit fd607018a3
11 changed files with 227 additions and 53 deletions

View file

@ -11,8 +11,9 @@ func _on_goose_talk():
var tween = create_tween()
tween.tween_property(self, "position:x", position.x - 50, .5).set_ease(tween.EASE_OUT)
await tween.finished
$DapperGoose/Bubble.show()
await get_tree().create_timer(3).timeout
$DapperGoose/Bubble.hide()
tween = create_tween()
tween.tween_property(self, "position:x", position.x + 50, .5).set_ease(tween.EASE_IN)

View file

@ -2,9 +2,22 @@
[ext_resource type="Script" uid="uid://dlojuida57qag" path="res://scenes/goose.gd" id="1_wf0t2"]
[ext_resource type="Texture2D" uid="uid://budoyq517fj7r" path="res://sprites/goose.png" id="1_wo8sg"]
[ext_resource type="Texture2D" uid="uid://boeji6333wj1p" path="res://sprites/bubble.png" id="3_g7ad0"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rsotj"]
size = Vector2(73, 100)
[node name="Goose" type="Area2D" unique_id=1594509381]
script = ExtResource("1_wf0t2")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1690665905]
[node name="DapperGoose" type="Sprite2D" parent="." unique_id=1690665905]
texture = ExtResource("1_wo8sg")
[node name="Bubble" type="Sprite2D" parent="DapperGoose" unique_id=2012258473]
visible = false
position = Vector2(-108, -21)
texture = ExtResource("3_g7ad0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1718121082]
position = Vector2(-18.5, 1)
shape = SubResource("RectangleShape2D_rsotj")

View file

@ -125,6 +125,7 @@ func _input(EventInput):
if EventInput.is_action_pressed("shoot") and playing == false:
print("Input detected!")
start_button.hide()
$Welcome.play()
new_game()
func _on_start_pressed():

View file

@ -9,6 +9,7 @@
[ext_resource type="Texture2D" uid="uid://0mcbtnidp5kn" path="res://sprites/third space title.png" id="5_tipki"]
[ext_resource type="Texture2D" uid="uid://bubqwoum50gf8" path="res://_graphics/Mini Pixel Pack 3/UI objects/GAME_OVER (72 x 8).png" id="6_7mycd"]
[ext_resource type="PackedScene" uid="uid://cd1kwb8klcsb5" path="res://scenes/goose.tscn" id="9_85g3d"]
[ext_resource type="AudioStream" uid="uid://c3e8sdfqcikp6" path="res://sounds/welcome.wav" id="10_choun"]
[sub_resource type="Animation" id="Animation_1bvp3"]
length = 0.001
@ -99,6 +100,7 @@ layout_mode = 2
texture = ExtResource("6_7mycd")
[node name="background" type="Sprite2D" parent="." unique_id=1790434669]
visible = false
z_index = -4
texture_repeat = 2
material = SubResource("ShaderMaterial_5vw27")
@ -112,4 +114,9 @@ visible = false
z_index = 2
position = Vector2(301, 272)
[node name="Welcome" type="AudioStreamPlayer2D" parent="." unique_id=1716491479]
position = Vector2(118, 162)
stream = ExtResource("10_choun")
volume_db = -0.5
[connection signal="pressed" from="CanvasLayer/CenterContainer/Start" to="." method="_on_start_pressed"]

View file

@ -1,66 +1,114 @@
[gd_scene load_steps=5 format=3 uid="uid://tlcdxoupi2lb"]
[gd_scene format=3 uid="uid://tlcdxoupi2lb"]
[ext_resource type="Texture2D" uid="uid://dpkeiihfos28m" path="res://_graphics/parallax/foreground stars.png" id="1_1f8kc"]
[ext_resource type="Texture2D" uid="uid://4n7q1wsq13ub" path="res://_graphics/parallax/foreground stars_b.png" id="2_mewf1"]
[ext_resource type="Texture2D" uid="uid://c855276xbf7g6" path="res://_graphics/parallax/midground stars.png" id="2_xwl8n"]
[ext_resource type="Texture2D" uid="uid://bn5iw6fm88p2i" path="res://_graphics/parallax/background stars.png" id="3_mewf1"]
[ext_resource type="Texture2D" uid="uid://b5ukhu38gqv6" path="res://sprites/cloud layers.png" id="1_b1x6b"]
[node name="Parallax Starfield" type="Node2D"]
[node name="Parallax Starfield" type="Node2D" unique_id=1859128454]
z_index = -100
[node name="Foreground Stars" type="Parallax2D" parent="."]
[node name="Foreground" type="Parallax2D" parent="." unique_id=1810383542]
self_modulate = Color(0.09185078, 0.09185078, 0.09185078, 1)
z_index = 5
scroll_scale = Vector2(-1, 1)
scroll_offset = Vector2(-87, -1)
repeat_size = Vector2(0, 64)
autoscroll = Vector2(0, 12)
repeat_times = 6
[node name="Sprite2D" type="Sprite2D" parent="Foreground" unique_id=1072362228]
texture_repeat = 2
position = Vector2(120, 160)
texture = ExtResource("1_b1x6b")
hframes = 4
frame = 3
region_rect = Rect2(0, 0, 64, 64)
[node name="Sprite2D2" type="Sprite2D" parent="Foreground" unique_id=197485442]
texture_repeat = 2
position = Vector2(293, 160)
texture = ExtResource("1_b1x6b")
flip_h = true
hframes = 4
frame = 3
region_rect = Rect2(0, 0, 64, 64)
[node name="Midground A" type="Parallax2D" parent="." unique_id=808073040]
z_index = 4
scroll_scale = Vector2(-1, 1)
scroll_offset = Vector2(-87, -1)
repeat_size = Vector2(0, 64)
autoscroll = Vector2(0, 6)
repeat_times = 6
[node name="Sprite2D" type="Sprite2D" parent="Midground A" unique_id=1827015332]
texture_repeat = 2
position = Vector2(120, 160)
texture = ExtResource("1_b1x6b")
hframes = 4
frame = 2
region_rect = Rect2(0, 0, 64, 64)
[node name="Sprite2D2" type="Sprite2D" parent="Midground A" unique_id=1995499185]
texture_repeat = 2
position = Vector2(293, 160)
texture = ExtResource("1_b1x6b")
flip_h = true
hframes = 4
frame = 2
region_rect = Rect2(0, 0, 64, 64)
[node name="Midground B" type="Parallax2D" parent="." unique_id=2012107382]
z_index = 3
scroll_scale = Vector2(-1, 1)
scroll_offset = Vector2(-87, -1)
repeat_size = Vector2(0, 64)
autoscroll = Vector2(0, 4)
repeat_times = 6
[node name="Sprite2D" type="Sprite2D" parent="Midground B" unique_id=319143427]
texture_repeat = 2
position = Vector2(122, 160)
texture = ExtResource("1_b1x6b")
hframes = 4
frame = 1
region_rect = Rect2(0, 0, 64, 64)
[node name="Sprite2D2" type="Sprite2D" parent="Midground B" unique_id=1709016326]
texture_repeat = 2
position = Vector2(292, 160)
texture = ExtResource("1_b1x6b")
flip_h = true
hframes = 4
frame = 1
region_rect = Rect2(0, 0, 64, 64)
[node name="Background Nothing" type="Parallax2D" parent="." unique_id=603653601]
scroll_scale = Vector2(1.5, 1)
scroll_offset = Vector2(52, 11)
repeat_size = Vector2(0, 128)
autoscroll = Vector2(0, 9)
repeat_times = 5
scroll_offset = Vector2(-89, -27)
repeat_size = Vector2(0, 32)
autoscroll = Vector2(0, 2)
repeat_times = 11
[node name="Sprite2D" type="Sprite2D" parent="Foreground Stars"]
[node name="Sprite2D" type="Sprite2D" parent="Background Nothing" unique_id=2117909699]
modulate = Color(0.6524728, 0.65247285, 0.6524728, 1)
texture_repeat = 2
position = Vector2(89, 133)
texture = ExtResource("1_1f8kc")
position = Vector2(105, 133)
texture = ExtResource("1_b1x6b")
centered = false
region_enabled = true
region_rect = Rect2(0, 0, 128, 32)
region_rect = Rect2(0, 0, 64, 64)
[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)
[node name="Sprite2D2" type="Sprite2D" parent="Background Nothing" unique_id=534116580]
modulate = Color(0.6524728, 0.65247285, 0.6524728, 1)
texture_repeat = 2
position = Vector2(151, 59)
texture = ExtResource("2_mewf1")
position = Vector2(247, 133)
texture = ExtResource("1_b1x6b")
centered = false
flip_h = true
region_enabled = true
region_rect = Rect2(0, 0, 128, 32)
region_rect = Rect2(0, 0, 64, 64)
[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="."]
[node name="ColorRect" type="ColorRect" parent="." unique_id=23364495]
z_index = -5
offset_right = 239.0
offset_bottom = 323.0
color = Color(0, 0, 0, 1)
color = Color(0.14509805, 0.16470589, 0.23921569, 1)

BIN
sounds/welcome.wav Normal file

Binary file not shown.

24
sounds/welcome.wav.import Normal file
View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://c3e8sdfqcikp6"
path="res://.godot/imported/welcome.wav-584d8f98f8927e399c967ae2efc62188.sample"
[deps]
source_file="res://sounds/welcome.wav"
dest_files=["res://.godot/imported/welcome.wav-584d8f98f8927e399c967ae2efc62188.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

BIN
sprites/bubble.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

40
sprites/bubble.png.import Normal file
View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://boeji6333wj1p"
path="res://.godot/imported/bubble.png-9420a568ad05d69837d71d8650b91269.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/bubble.png"
dest_files=["res://.godot/imported/bubble.png-9420a568ad05d69837d71d8650b91269.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
sprites/cloud layers.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b5ukhu38gqv6"
path="res://.godot/imported/cloud layers.png-7c937f51ee04835042a8eb7bc0d03dd5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/cloud layers.png"
dest_files=["res://.godot/imported/cloud layers.png-7c937f51ee04835042a8eb7bc0d03dd5.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