-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlock.tscn
106 lines (71 loc) · 2.59 KB
/
Block.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Block.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=2]
custom_solver_bias = 0.0
extents = Vector2( 32, 0.0974388 )
[sub_resource type="RectangleShape2D" id=3]
custom_solver_bias = 0.0
extents = Vector2( 0.106979, 32 )
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 31.9826, 32.051 )
[node name="Block" type="KinematicBody2D" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
collision/safe_margin = 0.08
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="." index="0"]
texture = ExtResource( 2 )
[node name="AreaTop" type="Area2D" parent="." index="1"]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
audio_bus_override = false
audio_bus_name = "Master"
[node name="CollisionShape2D" type="CollisionShape2D" parent="AreaTop" index="0"]
position = Vector2( 0, -32 )
shape = SubResource( 2 )
[node name="AreaRight" type="Area2D" parent="." index="2"]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
audio_bus_override = false
audio_bus_name = "Master"
[node name="CollisionShape2D" type="CollisionShape2D" parent="AreaRight" index="0"]
position = Vector2( -32, 0 )
shape = SubResource( 3 )
[node name="AreaBottom" type="Area2D" parent="." index="3"]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
audio_bus_override = false
audio_bus_name = "Master"
[node name="CollisionShape2D3" type="CollisionShape2D" parent="AreaBottom" index="0"]
position = Vector2( 0, 32 )
shape = SubResource( 2 )
[node name="AreaLeft" type="Area2D" parent="." index="4"]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
audio_bus_override = false
audio_bus_name = "Master"
[node name="CollisionShape2D2" type="CollisionShape2D" parent="AreaLeft" index="0"]
position = Vector2( 32, 0 )
shape = SubResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="5"]
visible = false
shape = SubResource( 1 )
[connection signal="area_entered" from="AreaTop" to="." method="_on_AreaTop_area_entered"]
[connection signal="area_entered" from="AreaRight" to="." method="_on_AreaRight_area_entered"]
[connection signal="area_entered" from="AreaBottom" to="." method="_on_AreaBottom_area_entered"]
[connection signal="area_entered" from="AreaLeft" to="." method="_on_AreaLeft_area_entered"]