[gd_scene load_steps=22 format=2]

[ext_resource path="res://scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://assets/Player/AssetPLayerArrat1.png" type="Texture" id=2]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel2_2.png" type="Texture" id=3]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel3_2.png" type="Texture" id=4]
[ext_resource path="res://assets/Player/AssetPLayerArrat2.png" type="Texture" id=5]
[ext_resource path="res://assets/Player/AssetPLayerArrat3.png" type="Texture" id=6]
[ext_resource path="res://assets/Player/AssetPLayerArratprisel1_2.png" type="Texture" id=7]
[ext_resource path="res://assets/Player/AssetPLayerArrat4.png" type="Texture" id=8]
[ext_resource path="res://scripts/Save.gd" type="Script" id=9]
[ext_resource path="res://assets/GUI/HP_Bar/HP_Bar.tscn" type="PackedScene" id=10]
[ext_resource path="res://addons/escape/Escape.tscn" type="PackedScene" id=11]
[ext_resource path="res://assets/Tests/texture_01.png" type="Texture" id=12]
[ext_resource path="res://scripts/BottleSpawn.gd" type="Script" id=13]
[ext_resource path="res://assets/Water/Water_Body.tscn" type="PackedScene" id=15]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 522.186, 12.9403 )

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

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 380.355, 150.746 )

[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 18.8725, 18.7813 )

[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 18.8592, 23.0553 )

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

[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 267.009, 10 )

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

[node name="ScreenBorders" type="Node2D" parent="."]
position = Vector2( 502.356, -12.157 )
scale = Vector2( 1.9, 1.9 )

[node name="StaticBody2D" type="StaticBody2D" parent="ScreenBorders"]

[node name="UpBorder" type="CollisionShape2D" parent="ScreenBorders/StaticBody2D"]
position = Vector2( 230.991, -3.94016 )
shape = SubResource( 1 )

[node name="RightBorder" type="CollisionShape2D" parent="ScreenBorders/StaticBody2D"]
position = Vector2( 755.258, 230.798 )
shape = SubResource( 2 )

[node name="LeftBorder" type="CollisionShape2D" parent="ScreenBorders/StaticBody2D"]
position = Vector2( -275.212, 236.626 )
shape = SubResource( 2 )

[node name="Water_Body" parent="." instance=ExtResource( 15 )]
position = Vector2( 780.072, 805.138 )
k = 0.03
d = 0.24
spread = 0.001
distance_between_springs = 16
spring_number = 40

[node name="LeftBlock" type="StaticBody2D" parent="."]
position = Vector2( 17.818, 0 )

[node name="Collision2" type="CollisionShape2D" parent="LeftBlock"]
visible = false
position = Vector2( 363.589, 928.971 )
shape = SubResource( 3 )

[node name="texture" type="Sprite" parent="LeftBlock"]
position = Vector2( 372.813, 929.282 )
scale = Vector2( 0.758553, 0.289136 )
texture = ExtResource( 12 )

[node name="RightBlock" type="StaticBody2D" parent="."]
position = Vector2( -1, 3 )

[node name="Collision" type="CollisionShape2D" parent="RightBlock"]
position = Vector2( 1626.94, 929.282 )
scale = Vector2( 0.8, 1 )
shape = SubResource( 3 )

[node name="texture2" type="Sprite" parent="RightBlock"]
position = Vector2( 1613.43, 929.282 )
scale = Vector2( 0.602197, 0.295713 )
texture = ExtResource( 12 )

[node name="Position2D" type="Position2D" parent="."]
position = Vector2( 1021.56, 423.357 )
script = ExtResource( 13 )

[node name="Timer" type="Timer" parent="Position2D"]
wait_time = 2.0
autostart = true

[node name="Position2D2" type="Position2D" parent="."]
position = Vector2( 871.146, 573.767 )
script = ExtResource( 13 )

[node name="Timer" type="Timer" parent="Position2D2"]
wait_time = 4.0
autostart = true

[node name="Position2D3" type="Position2D" parent="."]
position = Vector2( 1155.72, 542.801 )
script = ExtResource( 13 )

[node name="Timer" type="Timer" parent="Position2D3"]
wait_time = 6.0
autostart = true

[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 46.5806, 650.409 )
script = ExtResource( 1 )

[node name="CollisionSit" type="CollisionShape2D" parent="Player"]
visible = false
position = Vector2( 72.172, 74.1736 )
scale = Vector2( 1.9, 1.9 )
shape = SubResource( 4 )
disabled = true

[node name="Collision" type="CollisionShape2D" parent="Player"]
position = Vector2( 72.2378, 66.2825 )
scale = Vector2( 1.9, 1.9 )
shape = SubResource( 5 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="Player"]
position = Vector2( 60.3159, 62.2558 )
scale = Vector2( 7.961, 7.961 )
frames = SubResource( 6 )
animation = "Idle"

[node name="GunPosition" type="Position2D" parent="Player"]
position = Vector2( 86.8501, 67.1099 )

[node name="Camera2D" type="Camera2D" parent="Player"]
position = Vector2( 448.243, 49.4844 )
scale = Vector2( 0.9, 0.5 )
current = true
limit_left = 0
limit_top = 0
limit_right = 1920
limit_bottom = 1080
smoothing_enabled = true

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

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

[node name="HP_Bar" parent="." instance=ExtResource( 10 )]

[node name="Escape" parent="." instance=ExtResource( 11 )]
visible = false
position = Vector2( 1.33099, -0.184305 )
scale = Vector2( 1.9, 1.9 )

[node name="TimeMachine" type="Node2D" parent="."]
script = ExtResource( 9 )

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="Bottom"]
position = Vector2( 1037.56, 1070.53 )
shape = SubResource( 7 )

[connection signal="timeout" from="Position2D/Timer" to="Position2D" method="_on_Timer_timeout"]
[connection signal="timeout" from="Position2D2/Timer" to="Position2D2" method="_on_Timer_timeout"]
[connection signal="timeout" from="Position2D3/Timer" to="Position2D3" method="_on_Timer_timeout"]
[connection signal="timeout" from="Player/RunTimer" to="Player" method="_on_RunTimer_timeout"]
[connection signal="timeout" from="Player/RecoveryPower" to="Player" method="_on_RecoveryPower_timeout"]
