21 lines
862 B
Text
21 lines
862 B
Text
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://mini-game/scripts/obstacle1.gd" type="Script" id=1]
|
|
[ext_resource path="res://mini-game/ressources/sprites/obstacle/barrel.png" type="Texture" id=2]
|
|
[ext_resource path="res://mini-game/scenes/effets/collision_obstacle.tscn" type="PackedScene" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 28.3542, 36.1379 )
|
|
|
|
[node name="obstacle1" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
scale = Vector2( 0.202437, 0.202437 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="collision_obstacle" parent="." instance=ExtResource( 3 )]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="collision_obstacle"]
|
|
shape = SubResource( 1 )
|
|
[connection signal="body_entered" from="collision_obstacle" to="." method="_on_collision_obstacle_body_entered"]
|