[gd_scene load_steps=8 format=2]

[ext_resource path="res://assets/enemy/enemy.png" type="Texture" id=1]
[ext_resource path="res://src/Actors/Enemies/Beings/WhatAreFrog.gd" type="Script" id=2]
[ext_resource path="res://src/Actors/Enemies/Beings/WhatAreFrogStateMachine.gd" type="Script" id=3]
[ext_resource path="res://assets/meta/new_dynamicfont.tres" type="DynamicFont" id=4]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 2.72463, 1.17848 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 13, 5.12039 )

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 15.534, 10.0962 )

[node name="WhatAreFrog" type="KinematicBody2D" groups=["harmful"]]
collision_layer = 2
collision_mask = 9
collision/safe_margin = 0.001
script = ExtResource( 2 )

[node name="Statemachine" type="Node2D" parent="."]
script = ExtResource( 3 )

[node name="StateLabel" type="Label" parent="."]
show_behind_parent = true
margin_left = -36.0
margin_top = -30.0
margin_right = 37.0
margin_bottom = -16.0
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_fonts/font = ExtResource( 4 )
text = "Ihre Werbung"
align = 1
valign = 1

[node name="FrogSprite" type="Sprite" parent="."]
position = Vector2( 0, -1.90735e-06 )
scale = Vector2( 0.286789, 0.276348 )
texture = ExtResource( 1 )

[node name="VisibilityEnabler2D" type="VisibilityEnabler2D" parent="."]
position = Vector2( 1362.81, -0.138177 )
scale = Vector2( 15.4865, 1.28502 )
rect = Rect2( -89, -10, 2, 20 )
process_parent = true
physics_process_parent = true

[node name="CeilingRayCast" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 0, -13 )
collision_mask = 56

[node name="Orientation" type="RayCast2D" parent="."]
cast_to = Vector2( -1, 0 )
collision_mask = 0
collide_with_bodies = false

[node name="Left_Wallcast" type="RayCast2D" parent="."]
position = Vector2( -15, 8 )
enabled = true
cast_to = Vector2( -10, 0 )
collision_mask = 56

[node name="Right_Wallcast" type="RayCast2D" parent="."]
position = Vector2( 15, 8 )
enabled = true
cast_to = Vector2( 10, 0 )
collision_mask = 56

[node name="VisionRayCast" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 0, -1 )
collision_mask = 9
collide_with_areas = true

[node name="EnemyBody" type="CollisionShape2D" parent="." groups=["harmful"]]
position = Vector2( 0, 6.48802 )
scale = Vector2( 5.68128, 5.29182 )
shape = SubResource( 1 )

[node name="cshape" type="Node2D" parent="."]
position = Vector2( 0, -3.8147e-06 )
scale = Vector2( 0.1, 0.1 )

[node name="pjoint" type="PinJoint2D" parent="cshape"]
scale = Vector2( 0.3, 0.3 )
bias = 0.108
softness = 0.1

[node name="StompDetector" type="Area2D" parent="." groups=["weakpoint"]]
modulate = Color( 0, 0.0392157, 1, 1 )
position = Vector2( 0, -6.44095 )
collision_layer = 2
input_pickable = false

[node name="CollisionShape2D" type="CollisionShape2D" parent="StompDetector"]
position = Vector2( -4.76837e-07, 1.56134 )
shape = SubResource( 2 )

[node name="EnemySkin" type="Area2D" parent="." groups=["player"]]
process_priority = -1
collision_layer = 2
collision_mask = 126

[node name="CollisionPolygon2D" type="CollisionShape2D" parent="EnemySkin"]
position = Vector2( 5.96046e-07, 2.5 )
scale = Vector2( 1.03, 1.04 )
shape = SubResource( 3 )

[connection signal="body_entered" from="StompDetector" to="." method="_on_StompDetector_body_entered"]
[connection signal="area_entered" from="EnemySkin" to="." method="_on_EnemySkin_area_entered"]
