[gd_scene load_steps=7 format=2]

[ext_resource path="res://objects/characters/flopsy/flopsy.tres" type="SpriteFrames" id=1]
[ext_resource path="res://objects/characters/player/assets/hurt.ogg" type="AudioStream" id=2]
[ext_resource path="res://objects/characters/player/player.gd" type="Script" id=11]

[sub_resource type="CapsuleShape2D" id=4]
radius = 164.75
height = 138.75

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 190.5, 100.625 )

[sub_resource type="CircleShape2D" id=5]
radius = 79.0

[node name="Player" type="KinematicBody2D"]
z_index = 10
collision_mask = 4
script = ExtResource( 11 )

[node name="Sprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
animation = "idle"
frame = 2
playing = true
__meta__ = {
"_edit_lock_": true
}

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -14.75, -7.875 )
shape = SubResource( 4 )

[node name="GroundCheck" type="Area2D" parent="."]
collision_mask = 4

[node name="CollisionShape2D" type="CollisionShape2D" parent="GroundCheck"]
position = Vector2( -22.5, 323.375 )
shape = SubResource( 3 )

[node name="Camera2D" type="Camera2D" parent="."]
current = true
limit_left = 0
limit_bottom = 1080
limit_smoothed = true

[node name="RayBottomLeft" type="RayCast2D" parent="."]
position = Vector2( -184, 0 )
enabled = true
cast_to = Vector2( 0, 400 )
collision_mask = 6
collide_with_areas = true

[node name="RayBottomRight" type="RayCast2D" parent="."]
position = Vector2( 154, 0 )
enabled = true
cast_to = Vector2( 0, 400 )
collision_mask = 6
collide_with_areas = true

[node name="RayBottomCenter" type="RayCast2D" parent="."]
position = Vector2( -14, 0 )
enabled = true
cast_to = Vector2( 0, 400 )
collision_mask = 6
collide_with_areas = true

[node name="EnemyBottomCheck" type="Area2D" parent="."]
collision_mask = 2

[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBottomCheck"]
position = Vector2( -13, 225 )
shape = SubResource( 5 )

[node name="HurtSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 2 )
volume_db = -5.0

[connection signal="body_entered" from="GroundCheck" to="." method="_on_GroundCheck_body_entered"]
[connection signal="body_entered" from="EnemyBottomCheck" to="." method="_on_Enemy_Entered"]
