123456789101112131415161718192021222324252627282930313233 |
- [gd_scene load_steps=4 format=3 uid="uid://byxjroc2wrbgg"]
- [ext_resource type="Script" path="res://composants/objets/capsule/capsule.gd" id="1_so3qe"]
- [ext_resource type="Texture2D" uid="uid://b5vmhiqybeilg" path="res://composants/objets/capsule/capsule_fracassante.png" id="2_e7hdn"]
- [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_58m61"]
- radius = 7.0
- height = 28.0
- [node name="Capsule" type="Node2D"]
- z_index = 1
- script = ExtResource("1_so3qe")
- [node name="Image" type="Sprite2D" parent="."]
- position = Vector2(1, 1)
- scale = Vector2(0.933333, 0.875)
- texture = ExtResource("2_e7hdn")
- centered = false
- [node name="ZoneActivation" type="Area2D" parent="."]
- position = Vector2(15, 8)
- collision_layer = 8
- collision_mask = 2
- [node name="FormeZone" type="CollisionShape2D" parent="ZoneActivation"]
- rotation = 1.5708
- shape = SubResource("CapsuleShape2D_58m61")
- [node name="VerificateurVisibilite" type="VisibleOnScreenNotifier2D" parent="."]
- rect = Rect2(0, 0, 30, 16)
- [connection signal="body_entered" from="ZoneActivation" to="." method="_quand_zone_activation_detecte_un_corps"]
- [connection signal="screen_exited" from="VerificateurVisibilite" to="." method="_quand_verificateur_visibilite_detecte_sortie_ecran"]
|