revisit abyss lighting. make bullet fish, stars, and shards draw at full brightness as they glow in the depths.

This commit is contained in:
Haze Weathers 2024-01-16 03:22:17 -05:00
parent 70ef1a8450
commit 4848dca875
6 changed files with 38 additions and 14 deletions

View file

@ -76,7 +76,6 @@ material = SubResource( 7 )
position = Vector2( 0, -1 )
frames = SubResource( 5 )
animation = "key"
frame = 2
playing = true
centered = false
@ -91,6 +90,7 @@ position = Vector2( 4, 4 )
shape = SubResource( 6 )
[node name="Sparkles" type="CPUParticles2D" parent="."]
light_mask = 0
position = Vector2( 4.5, 4 )
amount = 1
lifetime = 2.0

View file

@ -40,6 +40,7 @@ script = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 0.861621, 0.868095, 0.96844, 1 )
light_mask = 0
material = SubResource( 7 )
position = Vector2( 5, 3 )
texture = ExtResource( 2 )
@ -57,6 +58,7 @@ shape = SubResource( 6 )
anims/glow = SubResource( 8 )
[node name="Sparkles" type="CPUParticles2D" parent="."]
light_mask = 0
position = Vector2( 4.5, 2.5 )
amount = 1
lifetime = 2.0

View file

@ -58,10 +58,11 @@ script = ExtResource( 3 )
particle_colors = [ Color( 1, 0.741176, 0.709804, 1 ), Color( 1, 0.968627, 0.709804, 1 ), Color( 0.709804, 1, 0.74902, 1 ), Color( 0.709804, 0.752941, 1, 1 ), Color( 1, 0.709804, 0.984314, 1 ) ]
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
light_mask = 0
material = SubResource( 10 )
position = Vector2( -1, -3 )
frames = SubResource( 8 )
frame = 4
frame = 1
playing = true
centered = false
@ -75,6 +76,7 @@ position = Vector2( 4, 4 )
shape = SubResource( 9 )
[node name="Sparkles" type="CPUParticles2D" parent="."]
light_mask = 0
position = Vector2( 4.5, 4 )
amount = 1
lifetime = 2.0

View file

@ -28,19 +28,19 @@ extents = Vector2( 4, 4 )
[sub_resource type="Animation" id=8]
resource_name = "glow"
length = 3.0
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("AnimatedSprite:modulate")
tracks/0/interp = 1
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1.5, 2.9 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"times": PoolRealArray( 0, 1, 2 ),
"transitions": PoolRealArray( 0.5, 4, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 0.396078, 0.396078, 0.396078, 1 ), Color( 1, 1, 1, 1 ) ]
"values": [ Color( 1.5, 1.5, 1.5, 1 ), Color( 0.8, 0.8, 0.8, 1 ), Color( 1.5, 1.5, 1.5, 1 ) ]
}
[sub_resource type="Animation" id=9]
@ -61,12 +61,11 @@ tracks/0/keys = {
[node name="Fish" type="Node2D" groups=["enemy"]]
script = ExtResource( 3 )
score_for_killing = 15
node_to_flip = NodePath("AnimatedSprite")
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
modulate = Color( 0.830741, 0.830741, 0.830741, 1 )
position = Vector2( 0, 5.79026 )
modulate = Color( 0.8, 0.8, 0.8, 1 )
light_mask = 0
frames = SubResource( 4 )
frame = 2
playing = true