[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 ) [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"]