ping_pong.tscn 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [gd_scene load_steps=12 format=3 uid="uid://driwh1k1pylf2"]
  2. [ext_resource type="Texture2D" uid="uid://baalvpvl7d5av" path="res://exec/niveaux/fonds/ground12.png" id="1_a1ws5"]
  3. [ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_sleah"]
  4. [ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_gk5yj"]
  5. [ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_78ofy"]
  6. [ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_2efjj"]
  7. [ext_resource type="Script" path="res://composants/mouvements/ping_pong.gd" id="5_rhvch"]
  8. [ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_e2f67"]
  9. [ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_4m08t"]
  10. [ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_ba4ka"]
  11. [ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_s8bvw"]
  12. [ext_resource type="AudioStream" uid="uid://1p4lhi3rprps" path="res://ressources/musiques/atelier_godot_level_main_loop.ogg" id="10_xnams"]
  13. [node name="PingPong" type="Node2D"]
  14. [node name="Fond" type="TextureRect" parent="."]
  15. offset_right = 40.0
  16. offset_bottom = 40.0
  17. texture = ExtResource("1_a1ws5")
  18. [node name="Raquette" parent="." instance=ExtResource("2_sleah")]
  19. position = Vector2(210, 400)
  20. [node name="Lanceur" parent="." instance=ExtResource("3_gk5yj")]
  21. position = Vector2(180, 144)
  22. [node name="Briques" type="Node2D" parent="."]
  23. script = ExtResource("4_78ofy")
  24. [node name="Ligne1" type="Node2D" parent="Briques"]
  25. script = ExtResource("4_78ofy")
  26. mouvement_script = ExtResource("5_rhvch")
  27. [node name="Brique1" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  28. position = Vector2(0, 256)
  29. [node name="Arene" parent="." instance=ExtResource("6_e2f67")]
  30. metadata/_edit_lock_ = true
  31. [node name="Message" type="PanelContainer" parent="."]
  32. visible = false
  33. offset_left = 20.0
  34. offset_top = 20.0
  35. offset_right = 400.0
  36. offset_bottom = 400.0
  37. [node name="Perdu" parent="Message" instance=ExtResource("7_4m08t")]
  38. visible = false
  39. layout_mode = 2
  40. [node name="Gagne" parent="Message" instance=ExtResource("8_ba4ka")]
  41. visible = false
  42. layout_mode = 2
  43. [node name="Stock" parent="." instance=ExtResource("9_s8bvw")]
  44. offset_bottom = 420.0
  45. [node name="Musique" type="AudioStreamPlayer" parent="."]
  46. process_mode = 3
  47. stream = ExtResource("10_xnams")
  48. autoplay = true
  49. bus = &"Musique"
  50. [connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
  51. [connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
  52. [connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
  53. [connection signal="plus_de_briques" from="Briques" to="Lanceur" method="queue_free"]
  54. [connection signal="plus_de_briques" from="Briques" to="Message" method="show"]
  55. [connection signal="plus_de_briques" from="Briques" to="Message/Gagne" method="show"]
  56. [connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]