Chicken.tscn 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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" groups=["chicken"]]
  7. collision_layer = 2
  8. script = ExtResource( 2 )
  9. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  10. position = Vector2( 0, 9.53674e-07 )
  11. frames = ExtResource( 1 )
  12. animation = "walk"
  13. [node name="Shape" type="CollisionShape2D" parent="."]
  14. shape = SubResource( 1 )
  15. [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
  16. rect = Rect2( -40, -40, 80, 80 )
  17. [node name="AngryTimer" type="Timer" parent="."]
  18. process_mode = 0
  19. one_shot = true
  20. __meta__ = {
  21. "_editor_description_": "The time the chicken will stop when hit before it starts running."
  22. }
  23. [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
  24. [connection signal="timeout" from="AngryTimer" to="." method="_on_AngryTimer_timeout"]