player - light up vases

This commit is contained in:
Sagi Dayan 2020-11-28 12:16:44 -05:00
parent c69cd21fe6
commit d73393a6d2
4 changed files with 12 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -702,7 +702,7 @@ texture = ExtResource( 7 )
texture_scale = 3.07
color = Color( 0.854902, 0.952941, 0.682353, 1 )
range_height = -2048.0
range_item_cull_mask = 7
range_item_cull_mask = 39
shadow_enabled = true
shadow_item_cull_mask = 15

View file

@ -6,7 +6,7 @@
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 5, 5 )
[sub_resource type="Animation" id=3]
[sub_resource type="Animation" id=2]
resource_name = "break"
length = 0.3
tracks/0/type = "value"
@ -34,8 +34,7 @@ tracks/1/keys = {
"values": [ true ]
}
[sub_resource type="Animation" id=2]
resource_name = "idle"
[sub_resource type="Animation" id=3]
length = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
@ -65,10 +64,11 @@ tracks/1/keys = {
[node name="BrakableVase" type="Node2D" groups=[
"Breakable",
]]
light_mask = 32
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
light_mask = 0
light_mask = 32
position = Vector2( 0, -8 )
texture = ExtResource( 1 )
hframes = 6
@ -83,5 +83,5 @@ shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
playback_speed = 0.8
anims/break = SubResource( 3 )
anims/idle = SubResource( 2 )
anims/break = SubResource( 2 )
anims/idle = SubResource( 3 )

View file

@ -82,16 +82,17 @@ tracks/0/keys = {
light_mask = 8
position = Vector2( 0, -12 )
frames = SubResource( 13 )
frame = 11
playing = true
[node name="Light2D" type="Light2D" parent="AnimatedSprite"]
position = Vector2( 0, -5 )
texture = ExtResource( 2 )
texture_scale = 5.285
color = Color( 0.945098, 0.419608, 0.160784, 1 )
range_item_cull_mask = 1037
shadow_enabled = true
shadow_item_cull_mask = 1038
color = Color( 0.933333, 0.407843, 0.152941, 1 )
energy = 1.5
range_item_cull_mask = 1087
shadow_item_cull_mask = 1032
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "halo"