balle_de_feu.tscn 1.1 KB

123456789101112131415161718192021222324252627282930
  1. [gd_scene load_steps=5 format=3 uid="uid://caq4nri545npd"]
  2. [ext_resource type="Script" path="res://composants/objets/balle/balle_de_feu/balle_de_feu.gd" id="1_snyek"]
  3. [ext_resource type="Texture2D" uid="uid://pwewqo1blabg" path="res://composants/objets/balle/balle_de_feu/02.png" id="2_bp2kr"]
  4. [ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://composants/objets/balle/collision_sfx.wav" id="3_uurrw"]
  5. [sub_resource type="CircleShape2D" id="CircleShape2D_lab73"]
  6. radius = 5.42
  7. [node name="BalleDeFeu" 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_snyek")
  14. [node name="Image" type="Sprite2D" parent="."]
  15. position = Vector2(-3, 0)
  16. texture = ExtResource("2_bp2kr")
  17. [node name="Forme" type="CollisionShape2D" parent="."]
  18. shape = SubResource("CircleShape2D_lab73")
  19. [node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
  20. stream = ExtResource("3_uurrw")
  21. volume_db = 7.429
  22. bus = &"Bruits"
  23. [connection signal="rebondi" from="." to="BruitRebond" method="play"]