Chicken.tscn 804 B

12345678910111213141516171819202122
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://component/entity/chick/anim/ChickenSpriteFrame.tres" type="SpriteFrames" id=1]
  3. [ext_resource path="res://component/entity/chick/Chicken.gd" type="Script" id=2]
  4. [sub_resource type="CircleShape2D" id=1]
  5. radius = 34.9763
  6. [node name="Chicken" type="KinematicBody2D"]
  7. script = ExtResource( 2 )
  8. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  9. position = Vector2( 0, 9.53674e-07 )
  10. frames = ExtResource( 1 )
  11. animation = "walk"
  12. [node name="Shape" type="CollisionShape2D" parent="."]
  13. shape = SubResource( 1 )
  14. [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
  15. rect = Rect2( -40, -40, 80, 80 )
  16. [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]