Player.tscn 771 B

12345678910111213141516171819202122232425262728
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://component/entity/player/Player.gd" type="Script" id=1]
  3. [ext_resource path="res://component/entity/player/PlayerTileSet.tres" type="SpriteFrames" id=2]
  4. [sub_resource type="CircleShape2D" id=1]
  5. radius = 15.9444
  6. [node name="Player" type="Area2D"]
  7. script = ExtResource( 1 )
  8. __meta__ = {
  9. "_edit_group_": true
  10. }
  11. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  12. position = Vector2( 0, -70 )
  13. scale = Vector2( 2, 2 )
  14. frames = ExtResource( 2 )
  15. animation = "idle"
  16. __meta__ = {
  17. "_edit_group_": true
  18. }
  19. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  20. position = Vector2( 0, -70 )
  21. shape = SubResource( 1 )
  22. [connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]