1234567891011121314151617181920212223242526272829303132333435363738 |
- [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"]
- z_index = 1
- position = Vector2(210, 400)
- script = ExtResource("1_cih4f")
- [node name="Image" type="Sprite2D" parent="."]
- texture = ExtResource("1_00b17")
- centered = false
- offset = Vector2(-14, -14)
- [node name="ZoneDestructive" type="Area2D" parent="."]
- position = Vector2(0, 8.63)
- collision_layer = 32
- collision_mask = 16
- [node name="FormeZone" type="CollisionShape2D" parent="ZoneDestructive"]
- rotation = 0.785398
- 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"]
|