summaryrefslogtreecommitdiff
path: root/scenes/hoop.tscn
blob: 0270685e9567f5bcbadd3ba81613a8b2676b1622 (plain)
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
[gd_scene load_steps=7 format=2]

[ext_resource path="res://textures/hoop_fore.png" type="Texture" id=1]
[ext_resource path="res://textures/hoop_back.png" type="Texture" id=2]
[ext_resource path="res://scripts/hoop.gd" type="Script" id=3]

[sub_resource type="SegmentShape2D" id=1]
a = Vector2( 12, -21.6 )
b = Vector2( -4.6, 11.4 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 9.9, 0.55 )

[sub_resource type="SegmentShape2D" id=3]
a = Vector2( -4.4, -1 )
b = Vector2( 17.4, -1 )

[node name="Hoop" type="StaticBody2D"]
scale = Vector2( 5, 5 )
script = ExtResource( 3 )
__meta__ = {
"_edit_group_": true
}

[node name="BackgroundSprite" type="Sprite" parent="."]
light_mask = 4
z_index = -1
texture = ExtResource( 2 )

[node name="ForegroundSprite" type="Sprite" parent="."]
position = Vector2( -12, 16 )
z_index = 1
texture = ExtResource( 1 )

[node name="RightCollider" type="CollisionShape2D" parent="."]
position = Vector2( 1.6, 1 )
shape = SubResource( 1 )

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2( -21.8, 6.6 )
rotation = 0.546288
scale = Vector2( 0.5, 1 )
polygon = PoolVector2Array( 0.762794, -5.14728, 5.32917, 3.9975, 2.25312, 4.93263, -3.35769, 0.318554 )

[node name="Area2D" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -12.6, 10.75 )
shape = SubResource( 2 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -6.2, 11.8 )
rotation = 3.14159
shape = SubResource( 3 )
one_way_collision = true

[connection signal="body_exited" from="Area2D" to="." method="_on_Area2D_body_exited"]