No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

obstacle2.tscn 1.0KB

1234567891011121314151617181920212223242526
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://mini-game/scripts/obstacle1.gd" type="Script" id=1]
  3. [ext_resource path="res://mini-game/ressources/sprites/obstacle/malus_enveloppe.png" type="Texture" id=2]
  4. [ext_resource path="res://mini-game/scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
  5. [sub_resource type="RectangleShape2D" id=1]
  6. extents = Vector2( 46.8347, 33.7529 )
  7. [node name="obstacle2" type="Node2D"]
  8. script = ExtResource( 1 )
  9. [node name="Sprite" type="Sprite" parent="."]
  10. position = Vector2( -0.0556164, -0.166861 )
  11. scale = Vector2( 0.2, 0.2 )
  12. texture = ExtResource( 2 )
  13. [node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
  14. [node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
  15. shape = SubResource( 1 )
  16. [node name="notifier" type="VisibilityNotifier2D" parent="."]
  17. position = Vector2( -0.333708, -0.333708 )
  18. scale = Vector2( 4.70418, 3.36934 )
  19. [connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]