brique.tscn 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [gd_scene load_steps=6 format=3 uid="uid://brd8yid3l7wgm"]
  2. [ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://ressources/materiaux/metal.tres" id="1_exny1"]
  3. [ext_resource type="Script" path="res://composants/objets/brique/brique.gd" id="2_gkrr0"]
  4. [ext_resource type="Texture2D" uid="uid://r7iyjvdve5a1" path="res://composants/objets/brique/images/01.png" id="3_72vd6"]
  5. [sub_resource type="RectangleShape2D" id="RectangleShape2D_ong6t"]
  6. size = Vector2(40, 26)
  7. [sub_resource type="RectangleShape2D" id="RectangleShape2D_tnj5s"]
  8. size = Vector2(30, 16)
  9. [node name="Brique" type="StaticBody2D"]
  10. collision_layer = 16
  11. physics_material_override = ExtResource("1_exny1")
  12. script = ExtResource("2_gkrr0")
  13. [node name="ZoneInfluence" type="Area2D" parent="."]
  14. collision_layer = 16
  15. collision_mask = 20
  16. monitoring = false
  17. [node name="FormeInfluence" type="CollisionShape2D" parent="ZoneInfluence"]
  18. visible = false
  19. position = Vector2(15, 8)
  20. shape = SubResource("RectangleShape2D_ong6t")
  21. [node name="Image" type="Sprite2D" parent="."]
  22. texture = ExtResource("3_72vd6")
  23. centered = false
  24. [node name="FormeRebond" type="CollisionShape2D" parent="."]
  25. visible = false
  26. position = Vector2(15, 8)
  27. shape = SubResource("RectangleShape2D_tnj5s")
  28. debug_color = Color(1, 0.6, 0.701961, 0.419608)