-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snake.tscn
40 lines (32 loc) · 1.17 KB
/
Snake.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
34
35
36
37
38
39
40
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Snake.gd" type="Script" id=1]
[ext_resource path="res://SnakeHead.tscn" type="PackedScene" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7.89617, 7.63158 )
[node name="Snake" type="Node2D"]
script = ExtResource( 1 )
[node name="SnakeHead" parent="." instance=ExtResource( 2 )]
position = Vector2( 0.471939, -0.943878 )
collision_layer = 1
collision_mask = 2147483664
[node name="Camera2D" type="Camera2D" parent="SnakeHead"]
current = true
limit_left = -1600
limit_top = -1600
limit_right = 1600
limit_bottom = 1600
limit_smoothed = true
drag_margin_h_enabled = true
drag_margin_v_enabled = true
smoothing_enabled = true
smoothing_speed = 4.0
offset_h = 0.05
offset_v = 0.05
[node name="Area2D" type="Area2D" parent="SnakeHead"]
collision_layer = 0
collision_mask = 18
[node name="CollisionShape2D" type="CollisionShape2D" parent="SnakeHead/Area2D"]
position = Vector2( 0.538025, -12.1472 )
shape = SubResource( 1 )
[connection signal="catch_the_eat" from="SnakeHead" to="." method="_on_SnakeHead_catch_the_eat"]
[connection signal="body_entered" from="SnakeHead/Area2D" to="." method="_on_Area2D_body_entered"]