platformer-game-test/src/Items/Torch.tscn
2020-11-28 13:19:54 -05:00

100 lines
2.6 KiB
Plaintext

[gd_scene load_steps=17 format=2]
[ext_resource path="res://assets/Items/tiki_torch_props_strip_12.png" type="Texture" id=1]
[ext_resource path="res://assets/Items/torch_ligt_texture.png" type="Texture" id=2]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 8, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 16, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 24, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 32, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
region = Rect2( 40, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 1 )
region = Rect2( 48, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 1 )
region = Rect2( 56, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 1 )
region = Rect2( 64, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 1 )
region = Rect2( 72, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 1 )
region = Rect2( 80, 0, 8, 24 )
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 1 )
region = Rect2( 88, 0, 8, 24 )
[sub_resource type="SpriteFrames" id=13]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": true,
"name": "default",
"speed": 12.0
} ]
[sub_resource type="Animation" id=14]
resource_name = "halo"
length = 0.6
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("AnimatedSprite/Light2D:texture_scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.3 ),
"transitions": PoolRealArray( 0.707107, 1, 1.10957 ),
"update": 0,
"values": [ 5.57, 5.0, 5.2 ]
}
[node name="Torch" type="Node2D"]
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
light_mask = 8
position = Vector2( 0, -12 )
frames = SubResource( 13 )
frame = 3
playing = true
[node name="Light2D" type="Light2D" parent="AnimatedSprite"]
position = Vector2( 0, -5 )
texture = ExtResource( 2 )
texture_scale = 5.285
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"
anims/halo = SubResource( 14 )