25 lines
655 B
Plaintext
Executable File
25 lines
655 B
Plaintext
Executable File
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Platforms.png" type="Texture" id=1]
|
|
[ext_resource path="res://Obstacles/Spikes.gd" type="Script" id=2]
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 7, 4 )
|
|
|
|
[node name="Spikes" type="Area2D"]
|
|
collision_mask = 8
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, -6 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="icon" type="Sprite" parent="."]
|
|
position = Vector2( 0, -12 )
|
|
texture = ExtResource( 1 )
|
|
vframes = 7
|
|
hframes = 7
|
|
frame = 3
|
|
[connection signal="body_entered" from="." to="." method="_on_Spikes_body_entered"]
|