paddle.tscn 769 B

123456789101112131415161718192021222324252627282930313233
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://logic/Paddle.cs" type="Script" id=1]
  3. [ext_resource path="res://paddle.png" type="Texture" id=2]
  4. [sub_resource type="CapsuleShape2D" id=1]
  5. radius = 4.78568
  6. height = 23.6064
  7. [node name="Paddle" type="Area2D"]
  8. script = ExtResource( 1 )
  9. [node name="Sprite" type="Sprite" parent="."]
  10. texture = ExtResource( 2 )
  11. [node name="Shape" type="CollisionShape2D" parent="."]
  12. shape = SubResource( 1 )
  13. [node name="You" type="Label" parent="."]
  14. margin_left = -26.0
  15. margin_top = -33.0
  16. margin_right = 27.0
  17. margin_bottom = -19.0
  18. size_flags_horizontal = 2
  19. size_flags_vertical = 0
  20. text = "You"
  21. align = 1
  22. __meta__ = {
  23. "_edit_use_anchors_": false
  24. }
  25. [connection signal="area_entered" from="." to="." method="OnPaddleAreaEnter"]