paddle.tscn 777 B

1234567891011121314151617181920212223242526272829303132
  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="Texture2D" 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="Sprite2D" type="Sprite2D" parent="."]
  10. texture = ExtResource( 2 )
  11. [node name="Shape3D" type="CollisionShape2D" parent="."]
  12. shape = SubResource( 1 )
  13. [node name="You" type="Label" parent="."]
  14. offset_left = -26.0
  15. offset_top = -33.0
  16. offset_right = 27.0
  17. offset_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"]