balle.tscn 1.1 KB

123456789101112131415161718192021222324252627282930
  1. [gd_scene load_steps=5 format=3 uid="uid://vilrv0y5q2re"]
  2. [ext_resource type="Script" path="res://composants/objets/balle/balle.gd" id="1_n72rw"]
  3. [ext_resource type="Texture2D" uid="uid://bbpkc5fx4p34l" path="res://composants/objets/balle/ball_main0001.png" id="2_aab72"]
  4. [ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://composants/objets/balle/collision_sfx.wav" id="3_7fm42"]
  5. [sub_resource type="CircleShape2D" id="CircleShape2D_lab73"]
  6. radius = 5.42
  7. [node name="Balle" type="CharacterBody2D" groups=["groupe_des_balles"]]
  8. collision_mask = 22
  9. motion_mode = 1
  10. wall_min_slide_angle = 0.0
  11. platform_floor_layers = 2
  12. platform_wall_layers = 4
  13. script = ExtResource("1_n72rw")
  14. [node name="Image" type="Sprite2D" parent="."]
  15. scale = Vector2(2, 2)
  16. texture = ExtResource("2_aab72")
  17. [node name="Forme" type="CollisionShape2D" parent="."]
  18. shape = SubResource("CircleShape2D_lab73")
  19. [node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
  20. stream = ExtResource("3_7fm42")
  21. volume_db = 7.429
  22. bus = &"Bruits"
  23. [connection signal="rebondi" from="." to="BruitRebond" method="play"]