[gd_scene load_steps=12 format=2]

[ext_resource path="res://Ghosty.tscn" type="PackedScene" id=1]
[ext_resource path="res://game.tres" type="Environment" id=2]
[ext_resource path="res://game.gd" type="Script" id=3]
[ext_resource path="res://pumpkinlanes.ogg" type="AudioStream" id=4]
[ext_resource path="res://blip4.wav" type="AudioStream" id=5]
[ext_resource path="res://button_font.tres" type="DynamicFont" id=6]
[ext_resource path="res://small_label.tres" type="DynamicFont" id=7]
[ext_resource path="res://Cascadia.ttf" type="DynamicFontData" id=8]

[sub_resource type="DynamicFont" id=6]
size = 24
font_data = ExtResource( 8 )

[sub_resource type="Animation" id=4]
resource_name = "Victory"
tracks/0/type = "value"
tracks/0/path = NodePath("Ghosty:translation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 5, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("OmniLight:translation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 3.28779, 2.36325, 3.02827 ), Vector3( -0.0649176, 7.41408, 4.5212 ) ]
}

[sub_resource type="Animation" id=5]
resource_name = "VictorySpin"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Ghosty:rotation_degrees")
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": [ Vector3( 0, 0, 0 ), Vector3( 0, -359, 0 ) ]
}

[node name="GameWorld" type="Spatial"]
script = ExtResource( 3 )

[node name="Camera" type="Camera" parent="."]
transform = Transform( 0.939693, -0.140169, 0.311978, 0, 0.912163, 0.409828, -0.34202, -0.385112, 0.857153, 2, 9, 18 )
current = true
fov = 77.6705

[node name="HitPlayer" type="AudioStreamPlayer" parent="Camera"]
stream = ExtResource( 5 )
volume_db = -2.0

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Camera"]
stream = ExtResource( 4 )
volume_db = -1.0

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource( 2 )

[node name="Ghosty" parent="." instance=ExtResource( 1 )]

[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.28779, 2.36325, 3.02827 )
omni_range = 5.14222

[node name="OmniLight2" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10.1059, 2.36325, 3.02827 )
omni_range = 5.14222

[node name="LevelTimer" type="Timer" parent="."]
one_shot = true

[node name="SpawnTimer" type="Timer" parent="."]
process_mode = 0
wait_time = 0.5
autostart = true

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

[node name="Label" type="Label" parent="CanvasLayer"]
margin_left = 2.0
margin_top = 16.0
margin_right = 125.0
margin_bottom = 38.0
custom_fonts/font = ExtResource( 7 )
text = "Time Until Escape: "
__meta__ = {
"_edit_use_anchors_": false
}

[node name="TimeRemain" type="Label" parent="CanvasLayer"]
margin_left = 206.0
margin_top = 11.0
margin_right = 246.0
margin_bottom = 25.0
custom_fonts/font = SubResource( 6 )
text = "90000"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="YouWin" type="Node2D" parent="CanvasLayer"]
visible = false

[node name="Again" type="Button" parent="CanvasLayer/YouWin"]
margin_left = 23.0
margin_top = 106.0
margin_right = 170.0
margin_bottom = 156.0
custom_fonts/font = ExtResource( 6 )
text = "Play Again"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Menu" type="Button" parent="CanvasLayer/YouWin"]
margin_left = 177.0
margin_top = 105.0
margin_right = 331.0
margin_bottom = 160.0
custom_fonts/font = ExtResource( 6 )
text = "Main Menu"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="YouWinLabel" type="Label" parent="CanvasLayer/YouWin"]
margin_left = 106.0
margin_top = 54.0
margin_right = 248.0
margin_bottom = 98.0
custom_fonts/font = ExtResource( 6 )
text = "YOU WIN!"

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Victory = SubResource( 4 )

[node name="AnimationPlayer2" type="AnimationPlayer" parent="."]
anims/VictorySpin = SubResource( 5 )
