balle_spectrale.tscn 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [gd_scene load_steps=6 format=3 uid="uid://c6fsp8efuw0k3"]
  2. [ext_resource type="Script" path="res://composants/objets/balle/balle_spectrale/balle_spectrale.gd" id="1_snyek"]
  3. [ext_resource type="Texture2D" uid="uid://dqygu3upmpf3v" path="res://composants/objets/balle/balle_spectrale/07.png" id="2_sf2e6"]
  4. [ext_resource type="Texture2D" uid="uid://ca4u4slhbnjd8" path="res://composants/objets/balle/balle_spectrale/08.png" id="3_mhuq7"]
  5. [ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://composants/objets/balle/collision_sfx.wav" id="4_tx8jq"]
  6. [sub_resource type="CircleShape2D" id="CircleShape2D_lab73"]
  7. radius = 5.42
  8. [node name="BalleDeFeu" type="CharacterBody2D" groups=["groupe_des_balles"]]
  9. collision_mask = 22
  10. motion_mode = 1
  11. wall_min_slide_angle = 0.0
  12. platform_floor_layers = 2
  13. platform_wall_layers = 4
  14. script = ExtResource("1_snyek")
  15. [node name="ImageTangible" type="Sprite2D" parent="."]
  16. position = Vector2(-1, -3)
  17. rotation = 1.5708
  18. texture = ExtResource("2_sf2e6")
  19. [node name="ImageSpectre" type="Sprite2D" parent="."]
  20. visible = false
  21. modulate = Color(1, 1, 1, 0.784314)
  22. position = Vector2(-1, -3)
  23. rotation = 1.5708
  24. texture = ExtResource("3_mhuq7")
  25. [node name="Forme" type="CollisionShape2D" parent="."]
  26. shape = SubResource("CircleShape2D_lab73")
  27. [node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
  28. stream = ExtResource("4_tx8jq")
  29. volume_db = 7.429
  30. bus = &"Bruits"
  31. [connection signal="rebondi" from="." to="BruitRebond" method="play"]