javelot.tscn 1.2 KB

123456789101112131415161718192021222324252627282930
  1. [gd_scene load_steps=4 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. [sub_resource type="RectangleShape2D" id="RectangleShape2D_0j83v"]
  5. size = Vector2(14, 14)
  6. [node name="Javelot" type="Node2D"]
  7. script = ExtResource("1_cih4f")
  8. [node name="Image" type="Sprite2D" parent="."]
  9. texture = ExtResource("1_00b17")
  10. centered = false
  11. offset = Vector2(-14, -14)
  12. [node name="ZoneDestructive" type="Area2D" parent="."]
  13. position = Vector2(0, 8.63)
  14. collision_layer = 32
  15. collision_mask = 16
  16. [node name="FormeZone" type="CollisionShape2D" parent="ZoneDestructive"]
  17. rotation = 0.785398
  18. shape = SubResource("RectangleShape2D_0j83v")
  19. [node name="VerificateurVisibilite" type="VisibleOnScreenNotifier2D" parent="."]
  20. rect = Rect2(-16, -16, 32, 300)
  21. [connection signal="body_entered" from="ZoneDestructive" to="." method="_quand_corps_entre_dans_zone_destructive"]
  22. [connection signal="screen_exited" from="VerificateurVisibilite" to="." method="_quand_verificateur_visibilite_detecte_sortie_ecran"]