arene.tscn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [gd_scene load_steps=6 format=3 uid="uid://b28d5a4be36qa"]
  2. [ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://ressources/materiaux/metal.tres" id="1_h5k8j"]
  3. [ext_resource type="Script" path="res://composants/objets/arene/arene.gd" id="2_4mq1v"]
  4. [sub_resource type="RectangleShape2D" id="RectangleShape2D_cjamf"]
  5. size = Vector2(820, 200)
  6. [sub_resource type="RectangleShape2D" id="RectangleShape2D_d3hv4"]
  7. size = Vector2(200, 1200)
  8. [sub_resource type="RectangleShape2D" id="RectangleShape2D_u5oj2"]
  9. size = Vector2(420, 420)
  10. [node name="Arene" type="StaticBody2D"]
  11. collision_layer = 4
  12. physics_material_override = ExtResource("1_h5k8j")
  13. script = ExtResource("2_4mq1v")
  14. [node name="Haut" type="CollisionShape2D" parent="."]
  15. position = Vector2(210, -100)
  16. shape = SubResource("RectangleShape2D_cjamf")
  17. [node name="Droite" type="CollisionShape2D" parent="."]
  18. position = Vector2(520, 400)
  19. shape = SubResource("RectangleShape2D_d3hv4")
  20. [node name="Gauche" type="CollisionShape2D" parent="."]
  21. position = Vector2(-100, 400)
  22. shape = SubResource("RectangleShape2D_d3hv4")
  23. [node name="ZoneExterieure" type="Area2D" parent="."]
  24. position = Vector2(210, 642)
  25. collision_layer = 4
  26. collision_mask = 17
  27. monitorable = false
  28. [node name="FormeZone" type="CollisionShape2D" parent="ZoneExterieure"]
  29. shape = SubResource("RectangleShape2D_u5oj2")
  30. [connection signal="area_shape_entered" from="ZoneExterieure" to="." method="_quand_zone_exterieure_detecte_entree_zone"]
  31. [connection signal="body_entered" from="ZoneExterieure" to="." method="_quand_zone_exterieure_detecte_entree"]