-
Notifications
You must be signed in to change notification settings - Fork 0
/
Goal.tscn
43 lines (36 loc) · 1.19 KB
/
Goal.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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Scripts/Goal.gd" type="Script" id=1]
[ext_resource path="res://Sprites/Goal.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
[sub_resource type="Animation" id=2]
resource_name = "Goal"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Rect2( 0, 0, 110, 16 ), Rect2( 8, 8, 110, 16 ) ]
}
[node name="Goal" type="Area2D"]
position = Vector2( -31, -82 )
z_index = 100
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 1, 1, 1, 0.392157 )
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 110, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
scale = Vector2( 5.5, 0.8 )
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Goal"
anims/Goal = SubResource( 2 )
[connection signal="body_entered" from="." to="." method="_on_Goal_body_entered"]