-
Notifications
You must be signed in to change notification settings - Fork 0
/
spike.tscn
33 lines (25 loc) · 923 Bytes
/
spike.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Cactus (1).png" type="Texture" id=1]
[ext_resource path="res://spike.gd" type="Script" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.80002
height = 10.8
[node name="Node2D" type="KinematicBody2D"]
collision_layer = 2
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="Timer" type="Timer" parent="."]
autostart = true
[node name="spike" type="Sprite" parent="."]
scale = Vector2( 0.870373, 1.05178 )
texture = ExtResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
scale = Vector2( 5, 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -0.200012, -1.6 )
scale = Vector2( 1, 1 )
shape = SubResource( 1 )
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]