javelot.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [gd_scene load_steps=5 format=3 uid="uid://cotwb2mk31lpx"]
  2. [ext_resource type="Texture2D" uid="uid://iahia86rgssf" path="res://composants/objets/javelot/mcJavelot.png" id="1_00b17"]
  3. [ext_resource type="Script" path="res://composants/objets/javelot/javelot.gd" id="1_cih4f"]
  4. [ext_resource type="AudioStream" uid="uid://dhkoh1k0p01pq" path="res://composants/objets/javelot/laser_sound.wav" id="3_b2ei5"]
  5. [sub_resource type="RectangleShape2D" id="RectangleShape2D_0j83v"]
  6. size = Vector2(14, 14)
  7. [node name="Javelot" type="Node2D"]
  8. z_index = 1
  9. position = Vector2(210, 400)
  10. script = ExtResource("1_cih4f")
  11. [node name="Image" type="Sprite2D" parent="."]
  12. texture = ExtResource("1_00b17")
  13. centered = false
  14. offset = Vector2(-14, -14)
  15. [node name="ZoneDestructive" type="Area2D" parent="."]
  16. position = Vector2(0, 8.63)
  17. collision_layer = 32
  18. collision_mask = 16
  19. [node name="FormeZone" type="CollisionShape2D" parent="ZoneDestructive"]
  20. rotation = 0.785398
  21. shape = SubResource("RectangleShape2D_0j83v")
  22. [node name="VerificateurVisibilite" type="VisibleOnScreenNotifier2D" parent="."]
  23. rect = Rect2(-16, -16, 32, 300)
  24. [node name="BruitLaser" type="AudioStreamPlayer2D" parent="."]
  25. stream = ExtResource("3_b2ei5")
  26. autoplay = true
  27. bus = &"Bruits"
  28. [connection signal="body_entered" from="ZoneDestructive" to="." method="_quand_corps_entre_dans_zone_destructive"]
  29. [connection signal="screen_exited" from="VerificateurVisibilite" to="." method="_quand_verificateur_visibilite_detecte_sortie_ecran"]