[gd_scene load_steps=29 format=2]

[ext_resource path="res://default_env.tres" type="Environment" id=1]
[ext_resource path="res://scripts/AutoPlayer.gd" type="Script" id=2]
[ext_resource path="res://assets/Player/AssetPLayerArrat4.png" type="Texture" id=3]
[ext_resource path="res://assets/Player/AssetPLayerArrat3.png" type="Texture" id=4]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel2_2.png" type="Texture" id=5]
[ext_resource path="res://scripts/Lobby.gd" type="Script" id=6]
[ext_resource path="res://assets/Background/lobby1.png" type="Texture" id=7]
[ext_resource path="res://assets/Dummy/dummy.png" type="Texture" id=8]
[ext_resource path="res://assets/GUI/transparent.png" type="Texture" id=9]
[ext_resource path="res://assets/Background/lobby2.png" type="Texture" id=10]
[ext_resource path="res://assets/Player/AssetPLayerArrat2.png" type="Texture" id=11]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel3_2.png" type="Texture" id=12]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel1_2.png" type="Texture" id=13]
[ext_resource path="res://assets/Player/AssetPLayerArrat1.png" type="Texture" id=14]
[ext_resource path="res://assets/Water/Old/2water(1frame).png" type="Texture" id=15]
[ext_resource path="res://assets/Water/Old/3water(1frame).png" type="Texture" id=16]
[ext_resource path="res://assets/Water/Old/1water(1frame).png" type="Texture" id=17]
[ext_resource path="res://assets/Duck/justduck.png" type="Texture" id=18]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 513.367, 12.0937 )

[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 7 ), ExtResource( 10 ) ],
"loop": true,
"name": "idle",
"speed": 1.0
} ]

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 522.186, 11.9596 )

[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 10, 233.152 )

[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 19.6767, 23.7101 )

[sub_resource type="SpriteFrames" id=6]
animations = [ {
"frames": [ ExtResource( 14 ), ExtResource( 3 ) ],
"loop": true,
"name": "Idle",
"speed": 5.0
}, {
"frames": [ ExtResource( 13 ), ExtResource( 5 ), ExtResource( 12 ) ],
"loop": true,
"name": "SquatAction",
"speed": 5.0
}, {
"frames": [ ExtResource( 11 ), ExtResource( 4 ) ],
"loop": true,
"name": "Walk",
"speed": 4.0
}, {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "jump",
"speed": 5.0
}, {
"frames": [ ExtResource( 13 ) ],
"loop": true,
"name": "SquatIdle",
"speed": 5.0
}, {
"frames": [ ExtResource( 14 ) ],
"loop": true,
"name": "posible",
"speed": 5.0
} ]

[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 19.8385, 19.4203 )

[sub_resource type="Shader" id=8]
code = "shader_type canvas_item;

uniform float lod: hint_range(0.0, 5) = 1.0;

void fragment(){
	vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV, lod);
	COLOR = color;
}"

[sub_resource type="ShaderMaterial" id=9]
shader = SubResource( 8 )
shader_param/lod = 1.0

[sub_resource type="World" id=10]
environment = ExtResource( 1 )
fallback_environment = ExtResource( 1 )

[node name="Node2D" type="Node2D"]

[node name="Terrain" type="StaticBody2D" parent="."]
position = Vector2( 16, 374.147 )

[node name="TerrainCollision" type="CollisionShape2D" parent="Terrain"]
position = Vector2( 495.805, 53.6347 )
shape = SubResource( 1 )

[node name="lobby1" type="Sprite" parent="Terrain"]
position = Vector2( 494.82, -72.5518 )
scale = Vector2( 5.33135, 5.54181 )
texture = ExtResource( 7 )
script = ExtResource( 6 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="Terrain/lobby1"]
position = Vector2( 0.151642, -0.225491 )
frames = SubResource( 2 )
animation = "idle"

[node name="UpBorder" type="CollisionShape2D" parent="Terrain"]
position = Vector2( 486.356, -386.304 )
shape = SubResource( 3 )

[node name="LeftBorder" type="CollisionShape2D" parent="Terrain"]
position = Vector2( -11.4124, -163.588 )
shape = SubResource( 4 )

[node name="RightBorder" type="CollisionShape2D" parent="Terrain"]
position = Vector2( 1008.78, -160.513 )
shape = SubResource( 4 )

[node name="Player" type="KinematicBody2D" parent="."]
visible = false
position = Vector2( -42.7076, 317.947 )
script = ExtResource( 2 )

[node name="Collision" type="CollisionShape2D" parent="Player"]
position = Vector2( 101.15, 46.1497 )
shape = SubResource( 5 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="Player"]
position = Vector2( 94.3338, 43.5671 )
scale = Vector2( 4.41596, 4.19006 )
frames = SubResource( 6 )
animation = "Idle"

[node name="CollisionSit" type="CollisionShape2D" parent="Player"]
position = Vector2( 100.997, 50.2748 )
shape = SubResource( 7 )
disabled = true

[node name="Delay" type="Timer" parent="Player"]
wait_time = 0.001
autostart = true

[node name="Timer" type="Timer" parent="Player"]
wait_time = 5.0
autostart = true

[node name="StayTime" type="Timer" parent="Player"]
wait_time = 7.0

[node name="dummy2" type="Sprite" parent="."]
position = Vector2( 789.828, 372.345 )
scale = Vector2( 4.23422, 4.23422 )
texture = ExtResource( 8 )

[node name="Blur" type="Sprite" parent="."]
material = SubResource( 9 )
position = Vector2( 510.229, 299.185 )
scale = Vector2( 5.33872, 5.54181 )
texture = ExtResource( 9 )

[node name="PlayButton" type="Button" parent="."]
margin_left = 406.0
margin_top = 168.831
margin_right = 621.0
margin_bottom = 231.831
text = "Play"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="SettingsButton" type="Button" parent="."]
margin_left = 406.0
margin_top = 245.72
margin_right = 621.0
margin_bottom = 308.72
text = "Settings"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ExitButton" type="Button" parent="."]
margin_left = 406.0
margin_top = 324.292
margin_right = 621.0
margin_bottom = 387.292
text = "Exit"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Viewport" type="Viewport" parent="."]
pause_mode = 1
size = Vector2( 640, 480 )
own_world = true
world = SubResource( 10 )
handle_input_locally = false
msaa = 2
usage = 0
audio_listener_enable_2d = true
audio_listener_enable_3d = true

[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 511.432, 298.094 )

[node name="3water(1frame)" type="Sprite" parent="."]
position = Vector2( 510.453, 302.636 )
scale = Vector2( 5.34209, 5.34209 )
texture = ExtResource( 16 )

[node name="justduck" type="Sprite" parent="."]
position = Vector2( 275.445, 472.403 )
scale = Vector2( 4.83449, 4.83449 )
texture = ExtResource( 18 )

[node name="2water(1frame)" type="Sprite" parent="."]
position = Vector2( 510.471, 302.923 )
scale = Vector2( 5.31653, 5.31653 )
texture = ExtResource( 15 )

[node name="1water(1frame)" type="Sprite" parent="."]
position = Vector2( 511.79, 308.514 )
scale = Vector2( 5.32126, 5.32126 )
texture = ExtResource( 17 )

[connection signal="timeout" from="Player/Delay" to="Player" method="_on_Delay_timeout"]
[connection signal="timeout" from="Player/Timer" to="Player" method="_on_Timer_timeout"]
[connection signal="timeout" from="Player/StayTime" to="Player" method="_on_StayTime_timeout"]
