|
@@ -1,12 +1,14 @@
|
|
|
-[gd_scene load_steps=4 format=3 uid="uid://cotwb2mk31lpx"]
|
|
|
+[gd_scene load_steps=5 format=3 uid="uid://cotwb2mk31lpx"]
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://iahia86rgssf" path="res://composants/objets/javelot/mcJavelot.png" id="1_00b17"]
|
|
|
[ext_resource type="Script" path="res://composants/objets/javelot/javelot.gd" id="1_cih4f"]
|
|
|
+[ext_resource type="AudioStream" uid="uid://dhkoh1k0p01pq" path="res://composants/objets/javelot/laser_sound.wav" id="3_b2ei5"]
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0j83v"]
|
|
|
size = Vector2(14, 14)
|
|
|
|
|
|
[node name="Javelot" type="Node2D"]
|
|
|
+position = Vector2(210, 400)
|
|
|
script = ExtResource("1_cih4f")
|
|
|
|
|
|
[node name="Image" type="Sprite2D" parent="."]
|
|
@@ -26,5 +28,10 @@ shape = SubResource("RectangleShape2D_0j83v")
|
|
|
[node name="VerificateurVisibilite" type="VisibleOnScreenNotifier2D" parent="."]
|
|
|
rect = Rect2(-16, -16, 32, 300)
|
|
|
|
|
|
+[node name="BruitLaser" type="AudioStreamPlayer2D" parent="."]
|
|
|
+stream = ExtResource("3_b2ei5")
|
|
|
+autoplay = true
|
|
|
+bus = &"Bruits"
|
|
|
+
|
|
|
[connection signal="body_entered" from="ZoneDestructive" to="." method="_quand_corps_entre_dans_zone_destructive"]
|
|
|
[connection signal="screen_exited" from="VerificateurVisibilite" to="." method="_quand_verificateur_visibilite_detecte_sortie_ecran"]
|