brique.tscn 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. position = Vector2(15, 8)
  19. shape = SubResource("RectangleShape2D_ong6t")
  20. [node name="Image" type="Sprite2D" parent="."]
  21. texture = ExtResource("3_72vd6")
  22. centered = false
  23. [node name="FormeRebond" type="CollisionShape2D" parent="."]
  24. position = Vector2(15, 8)
  25. shape = SubResource("RectangleShape2D_tnj5s")
  26. debug_color = Color(1, 0.6, 0.701961, 0.419608)