[gd_scene load_steps=9 format=2]

[ext_resource path="res://ServeArea.gd" type="Script" id=1]
[ext_resource path="res://Cups/Cup.tscn" type="PackedScene" id=2]
[ext_resource path="res://Art/LevelBackground.png" type="Texture" id=3]
[ext_resource path="res://Levels/Level001.tscn" type="PackedScene" id=4]
[ext_resource path="res://GUI.tscn" type="PackedScene" id=5]
[ext_resource path="res://Items/Item.tscn" type="PackedScene" id=6]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 269.25, 124 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 10, 480 )

[node name="World" type="Node2D"]
__meta__ = {
"_editor_description_": "https://gitea.zmanplex.com/zman27/PachinkoQuest

https://focalboard.zmanplex.com/"
}

[node name="TextureRect" type="TextureRect" parent="."]
margin_left = 2.0
margin_right = 536.0
margin_bottom = 957.0
texture = ExtResource( 3 )
expand = true
flip_v = true
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": "The basic board background for each vanilla level."
}

[node name="ServeArea" type="Area2D" parent="."]
script = ExtResource( 1 )
__meta__ = {
"_editor_description_": "Marbles can only be spawned and manipulated from within this area. Once a marble leaves it, it can no longer be directly influenced by the player."
}

[node name="TextureButton" type="TextureButton" parent="ServeArea"]
margin_right = 539.0
margin_bottom = 249.0
mouse_filter = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CollisionShape2D" type="CollisionShape2D" parent="ServeArea"]
position = Vector2( 269.75, 124 )
shape = SubResource( 1 )

[node name="Level001" parent="." instance=ExtResource( 4 )]

[node name="Wall" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall"]
position = Vector2( -10, 480 )
shape = SubResource( 2 )

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Wall"]
position = Vector2( 550, 480 )
shape = SubResource( 2 )

[node name="Cup" parent="." instance=ExtResource( 2 )]
position = Vector2( 266, 918 )

[node name="GUI" parent="." instance=ExtResource( 5 )]

[node name="Item" parent="." instance=ExtResource( 6 )]
position = Vector2( 370, 627 )

[connection signal="mouse_exited" from="ServeArea" to="ServeArea" method="_on_ServeArea_mouse_exited"]
[connection signal="button_down" from="ServeArea/TextureButton" to="ServeArea" method="_on_TextureButton_button_down"]
[connection signal="button_up" from="ServeArea/TextureButton" to="ServeArea" method="_on_TextureButton_button_up"]
[connection signal="change_score" from="Cup" to="GUI" method="handle_change_score"]
