Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy.tscn
[gd_scene load_steps=6 format=2]

[ext_resource path="res://prefab/role/Role.tscn" type="PackedScene" id=1]
[ext_resource path="res://resource/materlal/Blend.gdshader" type="Shader" id=2]

[sub_resource type="ShaderMaterial" id=1]
resource_local_to_scene = true
shader = ExtResource( 2 )
shader_param/blend = Color( 1, 1, 1, 1 )
shader_param/schedule = 1.0

[sub_resource type="ShaderMaterial" id=2]
resource_local_to_scene = true
shader = ExtResource( 2 )
shader_param/blend = Color( 1, 1, 1, 1 )
shader_param/schedule = 0.0

[sub_resource type="CircleShape2D" id=3]
radius = 13.0

[node name="Enemy" instance=ExtResource( 1 )]
CollisionLayer = 16

[node name="ShadowSprite" parent="." index="0"]
material = SubResource( 1 )

[node name="AnimatedSprite" parent="." index="2"]
material = SubResource( 2 )

[node name="ViewRay" type="RayCast2D" parent="." index="6"]
position = Vector2( 0, -8 )

[node name="MarginArea" type="Area2D" parent="." index="8"]
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="MarginArea" index="0"]
position = Vector2( 0, -8 )
shape = SubResource( 3 )