paddle.tscn 786 B

12345678910111213141516171819202122232425262728
  1. [gd_scene load_steps=4 format=3 uid="uid://cpw46256eirwq"]
  2. [ext_resource type="Script" path="res://logic/paddle.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://bjw2yb853klh2" path="res://paddle.png" 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. [connection signal="area_entered" from="." to="." method="_on_paddle_area_enter"]