Player.tscn 790 B

1234567891011121314151617181920212223242526272829
  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. collision_mask = 3
  8. script = ExtResource( 1 )
  9. __meta__ = {
  10. "_edit_group_": true
  11. }
  12. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  13. position = Vector2( 0, -70 )
  14. scale = Vector2( 2, 2 )
  15. frames = ExtResource( 2 )
  16. animation = "idle"
  17. __meta__ = {
  18. "_edit_group_": true
  19. }
  20. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  21. position = Vector2( 0, -70 )
  22. shape = SubResource( 1 )
  23. [connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]