[gd_scene load_steps=29 format=2]

[ext_resource path="res://Scenes/Dungeon.gd" type="Script" id=1]
[ext_resource path="res://Scenes/CameraControl.gd" type="Script" id=2]
[ext_resource path="res://Assets/Environment/turn-icon.png" type="Texture" id=3]
[ext_resource path="res://Scenes/UIController.gd" type="Script" id=4]
[ext_resource path="res://Assets/AlegreyaSansSC-ExtraBold.ttf" type="DynamicFontData" id=5]
[ext_resource path="res://Scenes/ScoreParticle.tscn" type="PackedScene" id=6]
[ext_resource path="res://Assets/arm.png" type="Texture" id=7]
[ext_resource path="res://Assets/Environment/BG-tiled.png" type="Texture" id=8]

[sub_resource type="ProceduralSky" id=2]

[sub_resource type="Environment" id=3]
background_mode = 4
background_sky = SubResource( 2 )
background_color = Color( 0.1, 0.1, 0.1, 1 )
ambient_light_color = Color( 1, 1, 1, 1 )
dof_blur_far_amount = 0.06

[sub_resource type="DynamicFont" id=5]
size = 48
outline_size = 2
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 5 )

[sub_resource type="DynamicFont" id=6]
size = 36
outline_size = 2
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 5 )

[sub_resource type="Animation" id=11]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=12]
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=13]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=14]
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=15]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=16]
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=17]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=18]
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=19]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=20]
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=21]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=22]
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=9]
resource_name = "FadeIn"
length = 0.4
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=10]
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=7]
resource_name = "HandMoving"
length = 3.0
tracks/0/type = "value"
tracks/0/path = NodePath("Arm:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 1.5, 3 ),
"transitions": PoolRealArray( 0.482968, 1, 0.378929, 1 ),
"update": 0,
"values": [ Vector2( 423, -39.0001 ), Vector2( 358, 433 ), Vector2( 358, 433 ), Vector2( 570, -90.0001 ) ]
}

[sub_resource type="Animation" id=8]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("Arm:rect_position")
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": [ Vector2( 423, -39.0001 ) ]
}

[node name="Dungeon" type="Spatial"]
script = ExtResource( 1 )

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 3 )

[node name="Pitch" type="Spatial" parent="."]
transform = Transform( 0.766044, 0, 0.642788, 0, 1, 0, -0.642788, 0, 0.766044, 0, 0, 0 )
script = ExtResource( 2 )

[node name="Yaw" type="Spatial" parent="Pitch"]
transform = Transform( 1, 0, 0, 0, 0.665856, 0.746081, 0, -0.746081, 0.665856, 0, 0, 0 )

[node name="Camera" type="Camera" parent="Pitch/Yaw"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 30 )
projection = 1
current = true
fov = 24.0
size = 10.0

[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.73644, 0.441272, -0.512773, 0, 0.757975, 0.652284, 0.676503, -0.480367, 0.558203, 0, 35.1428, 0 )
light_energy = 0.5

[node name="Background" type="CanvasLayer" parent="."]
layer = -1

[node name="Cleyton" type="TextureRect" parent="Background"]
modulate = Color( 0.690196, 0.494118, 0.768627, 1 )
anchor_right = 1.0
anchor_bottom = 1.0
rect_rotation = -0.0481524
texture = ExtResource( 8 )
expand = true
stretch_mode = 2

[node name="UIController" type="CanvasLayer" parent="."]
script = ExtResource( 4 )

[node name="TextureRect" type="TextureRect" parent="UIController"]
margin_right = 64.0
margin_bottom = 64.0
rect_rotation = -0.0481524
texture = ExtResource( 3 )

[node name="NumberOfTurns" type="Label" parent="UIController"]
margin_left = 67.0
margin_top = 7.0
margin_right = 351.0
margin_bottom = 56.0
custom_fonts/font = SubResource( 5 )
text = "Turns left: 20"

[node name="Objectives" type="Label" parent="UIController"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -610.0
margin_top = 5.0
margin_right = -9.0
margin_bottom = 54.0
custom_fonts/font = SubResource( 6 )
text = "(0/1) Activate the Crystals!"
align = 2
valign = 2

[node name="Particles" type="Control" parent="UIController"]

[node name="ScoreParticle" parent="UIController/Particles" instance=ExtResource( 6 )]
visible = false

[node name="ScoreParticle2" parent="UIController/Particles" instance=ExtResource( 6 )]
visible = false

[node name="ScoreParticle3" parent="UIController/Particles" instance=ExtResource( 6 )]
visible = false

[node name="ScoreParticle4" parent="UIController/Particles" instance=ExtResource( 6 )]
visible = false

[node name="ScoreParticle5" parent="UIController/Particles" instance=ExtResource( 6 )]
visible = false

[node name="ScoreParticle6" parent="UIController/Particles" instance=ExtResource( 6 )]
visible = false

[node name="Arm" type="TextureRect" parent="UIController"]
margin_left = 423.0
margin_top = -39.0001
margin_right = 1050.0
margin_bottom = 588.0
rect_rotation = -87.8432
texture = ExtResource( 7 )
expand = true

[node name="OnboardingOverlay" type="ColorRect" parent="UIController"]
modulate = Color( 1, 1, 1, 0 )
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.368627 )

[node name="Intro1" type="Label" parent="UIController/OnboardingOverlay"]
visible = false
modulate = Color( 1, 1, 1, 0 )
anchor_left = 1.0
anchor_right = 1.0
margin_left = -1011.0
margin_top = 101.0
margin_right = -645.0
margin_bottom = 178.0
custom_fonts/font = SubResource( 6 )
text = "This is how many turns you have left to complete the stage!"
valign = 2
autowrap = true

[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro1"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -192.0
margin_top = -25.0
margin_right = -175.0
margin_bottom = 12.0
rect_rotation = 89.7773
custom_fonts/font = SubResource( 6 )
text = "<"
align = 1
valign = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro1"]
anims/FadeIn = SubResource( 11 )
anims/RESET = SubResource( 12 )

[node name="Intro2" type="Label" parent="UIController/OnboardingOverlay"]
visible = false
modulate = Color( 1, 1, 1, 0 )
anchor_left = 1.0
anchor_right = 1.0
margin_left = -1011.0
margin_top = 101.0
margin_right = -645.0
margin_bottom = 178.0
custom_fonts/font = SubResource( 6 )
text = "They accumulate each stage, so be careful using them!"
valign = 2
autowrap = true

[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro2"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -192.0
margin_top = -25.0
margin_right = -175.0
margin_bottom = 12.0
rect_rotation = 89.7773
custom_fonts/font = SubResource( 6 )
text = "<"
align = 1
valign = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro2"]
anims/FadeIn = SubResource( 13 )
anims/RESET = SubResource( 14 )

[node name="Intro3" type="Label" parent="UIController/OnboardingOverlay"]
visible = false
modulate = Color( 1, 1, 1, 0 )
anchor_left = 1.0
anchor_right = 1.0
margin_left = -585.0
margin_top = 56.0
margin_right = -219.0
margin_bottom = 173.0
custom_fonts/font = SubResource( 6 )
text = "This is a monster! Step on them to gain turns!"
valign = 2
autowrap = true

[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro3"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -231.0
margin_top = 141.0
margin_right = -214.0
margin_bottom = 178.0
rect_rotation = -89.269
custom_fonts/font = SubResource( 6 )
text = "<"
align = 1
valign = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro3"]
anims/FadeIn = SubResource( 15 )
anims/RESET = SubResource( 16 )

[node name="Intro4" type="Label" parent="UIController/OnboardingOverlay"]
visible = false
modulate = Color( 1, 1, 1, 0 )
anchor_left = 1.0
anchor_right = 1.0
margin_left = -648.0
margin_top = 57.0
margin_right = -219.0
margin_bottom = 174.0
custom_fonts/font = SubResource( 6 )
text = "You'll win more turns depending on the dice face when you step on them!"
valign = 2
autowrap = true

[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro4"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -231.0
margin_top = 141.0
margin_right = -214.0
margin_bottom = 178.0
rect_rotation = -89.269
custom_fonts/font = SubResource( 6 )
text = "<"
align = 1
valign = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro4"]
anims/FadeIn = SubResource( 17 )
anims/RESET = SubResource( 18 )

[node name="Intro5" type="Label" parent="UIController/OnboardingOverlay"]
visible = false
modulate = Color( 1, 1, 1, 0 )
anchor_left = 1.0
anchor_right = 1.0
margin_left = -517.0
margin_top = 253.0
margin_right = -88.0
margin_bottom = 370.0
custom_fonts/font = SubResource( 6 )
text = "Win the stage by activating the crystals!"
valign = 2
autowrap = true

[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro5"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -244.0
margin_top = 14.0
margin_right = -227.0
margin_bottom = 51.0
rect_rotation = 88.8921
custom_fonts/font = SubResource( 6 )
text = "<"
align = 1
valign = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro5"]
anims/FadeIn = SubResource( 19 )
anims/RESET = SubResource( 20 )

[node name="Intro6" type="Label" parent="UIController/OnboardingOverlay"]
visible = false
modulate = Color( 1, 1, 1, 0 )
anchor_left = 1.0
anchor_right = 1.0
margin_left = -554.0
margin_top = 299.0
margin_right = -125.0
margin_bottom = 416.0
custom_fonts/font = SubResource( 6 )
text = "You can only activate the crystal with a value of 1, 2 or 3 on the dice!"
valign = 2
autowrap = true

[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro6"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -206.0
margin_top = -30.0
margin_right = -189.0
margin_bottom = 7.0
rect_rotation = 90.0938
custom_fonts/font = SubResource( 6 )
text = "<"
align = 1
valign = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro6"]
anims/FadeIn = SubResource( 21 )
anims/RESET = SubResource( 22 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay"]
anims/FadeIn = SubResource( 9 )
anims/RESET = SubResource( 10 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController"]
anims/HandMoving = SubResource( 7 )
anims/RESET = SubResource( 8 )