GodotComponentTest/Entities/WanderingEntity.tscn

37 lines
1.3 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Components/TintedSpriteComponent.gd" type="Script" id=1]
[ext_resource path="res://Entities/WanderingEntity.gd" type="Script" id=2]
[ext_resource path="res://Components/ColorComponent.gd" type="Script" id=3]
[ext_resource path="res://Components/ClickableComponent.gd" type="Script" id=4]
[ext_resource path="res://icon.png" type="Texture" id=5]
[ext_resource path="res://Components/MovableComponent.gd" type="Script" id=6]
[sub_resource type="CircleShape2D" id=1]
radius = 31.4006
[node name="WanderingEntity" type="Node2D"]
script = ExtResource( 2 )
[node name="Components" type="Node2D" parent="."]
[node name="Movable" type="Node2D" parent="Components"]
script = ExtResource( 6 )
[node name="Clickable" type="Node2D" parent="Components"]
script = ExtResource( 4 )
[node name="Area2D" type="Area2D" parent="Components/Clickable"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Components/Clickable/Area2D"]
shape = SubResource( 1 )
[node name="TintedSprite" type="Sprite" parent="Components"]
texture = ExtResource( 5 )
script = ExtResource( 1 )
[node name="Color" type="Node" parent="Components"]
script = ExtResource( 3 )
[connection signal="input_event" from="Components/Clickable/Area2D" to="Components/Clickable" method="_on_Area2D_input_event"]