[gd_scene load_steps=9 format=2]

[ext_resource path="res://src/Main/Game.gd" type="Script" id=1]
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=2]
[ext_resource path="res://src/UI/debug/DebugDock.gd" type="Script" id=3]
[ext_resource path="res://src/UI/debug/DebugPanel.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/Player/Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/Levels/SkyParallaxBackground.tscn" type="PackedScene" id=6]

[sub_resource type="Animation" id=1]
resource_name = "<BASE>"
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ) ]
}

[sub_resource type="Animation" id=2]
resource_name = "transition"
length = 0.6
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.4, 0.6 ),
"transitions": PoolRealArray( 0.732043, 1.51572, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}
tracks/1/type = "method"
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.4 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ "peaked" ],
"method": "emit_signal"
} ]
}

[node name="Game" type="Node"]
script = ExtResource( 1 )

[node name="UI" type="CanvasLayer" parent="."]
layer = 100

[node name="DebugDock" type="MarginContainer" parent="UI"]
anchor_bottom = 1.0
margin_right = 440.0
mouse_filter = 2
theme = ExtResource( 2 )
script = ExtResource( 3 )

[node name="Column" type="VBoxContainer" parent="UI/DebugDock"]
margin_left = 16.0
margin_top = 16.0
margin_right = 424.0
margin_bottom = 1064.0
mouse_filter = 2

[node name="DebugPanel" parent="UI/DebugDock/Column" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 408.0
margin_bottom = 196.0
mouse_filter = 2
reference_path = NodePath("../../../../../Game/Player/StateMachine/Move")
properties = PoolStringArray( "velocity", "acceleration", "max_speed" )

[node name="DebugPanel2" parent="UI/DebugDock/Column" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 204.0
margin_right = 408.0
margin_bottom = 332.0
mouse_filter = 2
reference_path = NodePath("../../../../../Game/Player/StateMachine")
properties = PoolStringArray( "_state_name" )

[node name="Transition" type="ColorRect" parent="UI"]
pause_mode = 2
modulate = Color( 1, 1, 1, 0 )
margin_right = 1920.0
margin_bottom = 1080.0
mouse_filter = 2
color = Color( 0, 0, 0, 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="UI/Transition"]
autoplay = "<BASE>"
anims/<BASE> = SubResource( 1 )
anims/transition = SubResource( 2 )

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

[node name="SkyParallaxBackground" parent="." instance=ExtResource( 6 )]

[editable path="Player"]
