arene.tscn 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [gd_scene load_steps=7 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. [ext_resource type="Script" path="res://composants/objets/arene/hack_detection_statique.gd" id="3_k2opa"]
  5. [sub_resource type="RectangleShape2D" id="RectangleShape2D_cjamf"]
  6. size = Vector2(820, 200)
  7. [sub_resource type="RectangleShape2D" id="RectangleShape2D_d3hv4"]
  8. size = Vector2(200, 1200)
  9. [sub_resource type="RectangleShape2D" id="RectangleShape2D_u5oj2"]
  10. size = Vector2(420, 420)
  11. [node name="Arene" type="Node2D"]
  12. script = ExtResource("2_4mq1v")
  13. [node name="Murs" type="StaticBody2D" parent="."]
  14. collision_layer = 4
  15. physics_material_override = ExtResource("1_h5k8j")
  16. [node name="Haut" type="CollisionShape2D" parent="Murs"]
  17. position = Vector2(210, -100)
  18. shape = SubResource("RectangleShape2D_cjamf")
  19. [node name="Droite" type="CollisionShape2D" parent="Murs"]
  20. position = Vector2(520, 400)
  21. shape = SubResource("RectangleShape2D_d3hv4")
  22. [node name="Gauche" type="CollisionShape2D" parent="Murs"]
  23. position = Vector2(-100, 400)
  24. shape = SubResource("RectangleShape2D_d3hv4")
  25. [node name="ZoneExterieure" type="Area2D" parent="."]
  26. position = Vector2(210, 642)
  27. collision_layer = 4
  28. collision_mask = 17
  29. script = ExtResource("3_k2opa")
  30. [node name="FormeZone" type="CollisionShape2D" parent="ZoneExterieure"]
  31. shape = SubResource("RectangleShape2D_u5oj2")
  32. [connection signal="body_entered" from="ZoneExterieure" to="." method="_quand_zone_exterieure_detecte_entree"]