|
@@ -1,7 +1,8 @@
|
|
|
-[gd_scene load_steps=6 format=3 uid="uid://b28d5a4be36qa"]
|
|
|
+[gd_scene load_steps=7 format=3 uid="uid://b28d5a4be36qa"]
|
|
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://ressources/materiaux/metal.tres" id="1_h5k8j"]
|
|
|
[ext_resource type="Script" path="res://composants/objets/arene/arene.gd" id="2_4mq1v"]
|
|
|
+[ext_resource type="Script" path="res://composants/objets/arene/hack_detection_statique.gd" id="3_k2opa"]
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cjamf"]
|
|
|
size = Vector2(820, 200)
|
|
@@ -12,27 +13,30 @@ size = Vector2(200, 1200)
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u5oj2"]
|
|
|
size = Vector2(420, 420)
|
|
|
|
|
|
-[node name="Arene" type="StaticBody2D"]
|
|
|
+[node name="Arene" type="Node2D"]
|
|
|
+script = ExtResource("2_4mq1v")
|
|
|
+
|
|
|
+[node name="Murs" type="StaticBody2D" parent="."]
|
|
|
collision_layer = 4
|
|
|
physics_material_override = ExtResource("1_h5k8j")
|
|
|
-script = ExtResource("2_4mq1v")
|
|
|
|
|
|
-[node name="Haut" type="CollisionShape2D" parent="."]
|
|
|
+[node name="Haut" type="CollisionShape2D" parent="Murs"]
|
|
|
position = Vector2(210, -100)
|
|
|
shape = SubResource("RectangleShape2D_cjamf")
|
|
|
|
|
|
-[node name="Droite" type="CollisionShape2D" parent="."]
|
|
|
+[node name="Droite" type="CollisionShape2D" parent="Murs"]
|
|
|
position = Vector2(520, 400)
|
|
|
shape = SubResource("RectangleShape2D_d3hv4")
|
|
|
|
|
|
-[node name="Gauche" type="CollisionShape2D" parent="."]
|
|
|
+[node name="Gauche" type="CollisionShape2D" parent="Murs"]
|
|
|
position = Vector2(-100, 400)
|
|
|
shape = SubResource("RectangleShape2D_d3hv4")
|
|
|
|
|
|
[node name="ZoneExterieure" type="Area2D" parent="."]
|
|
|
position = Vector2(210, 642)
|
|
|
collision_layer = 4
|
|
|
-monitorable = false
|
|
|
+collision_mask = 17
|
|
|
+script = ExtResource("3_k2opa")
|
|
|
|
|
|
[node name="FormeZone" type="CollisionShape2D" parent="ZoneExterieure"]
|
|
|
shape = SubResource("RectangleShape2D_u5oj2")
|