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.

obstacle1.tscn 832B

123456789101112131415161718192021
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/obstacle1.gd" type="Script" id=1]
  3. [ext_resource path="res://ressources/sprites/obstacle/barrel.png" type="Texture" id=2]
  4. [ext_resource path="res://scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
  5. [sub_resource type="RectangleShape2D" id=1]
  6. extents = Vector2( 28.3542, 36.1379 )
  7. [node name="obstacle1" type="Node2D"]
  8. script = ExtResource( 1 )
  9. [node name="Sprite" type="Sprite" parent="."]
  10. scale = Vector2( 0.202437, 0.202437 )
  11. texture = ExtResource( 2 )
  12. [node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
  13. [node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
  14. shape = SubResource( 1 )
  15. [connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]