[gd_scene load_steps=11 format=3 uid="uid://bxuxjqxxqy7ce"]

[ext_resource type="PackedScene" uid="uid://di21xheryhp0k" path="res://Hiro/hiro_player.tscn" id="1_c1gpq"]
[ext_resource type="PackedScene" uid="uid://b8sfype1vx5ad" path="res://Nem/nem_npc.tscn" id="1_sqt7d"]
[ext_resource type="Script" path="res://Scripts/Levels/arena_level.gd" id="1_y634h"]
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="2_o5str"]
[ext_resource type="Texture2D" uid="uid://b40la2vyf4rn6" path="res://world/Fighting Dojo BG.png" id="4_elb6q"]
[ext_resource type="PackedScene" uid="uid://dd2km6qhpdicx" path="res://Hiro/hiro_ai.tscn" id="5_r7nw4"]
[ext_resource type="PackedScene" uid="uid://bakb5a7xe4qby" path="res://Reed/reed_player.tscn" id="6_cn8e2"]
[ext_resource type="Texture2D" uid="uid://dc12iaho4b8yl" path="res://world/walls.png" id="7_pp5dn"]
[ext_resource type="PackedScene" uid="uid://c503u0i421w34" path="res://world/pillar.tscn" id="8_mxq55"]
[ext_resource type="Script" path="res://Scripts/explosion_generator.gd" id="9_df2wo"]

[node name="Level" type="Node2D"]
y_sort_enabled = true
script = ExtResource("1_y634h")

[node name="MapElements" type="Node2D" parent="."]
y_sort_enabled = true

[node name="FightingDojoBg" type="Sprite2D" parent="MapElements"]
z_index = -5
texture_filter = 1
position = Vector2(136, 148)
texture = ExtResource("4_elb6q")
metadata/_edit_lock_ = true

[node name="LongWoodPillar" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(48, 239)

[node name="LongWoodPillar2" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(48, 159)

[node name="LongWoodPillar3" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(96, 120)

[node name="LongWoodPillar4" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(224, 159)

[node name="LongWoodPillar5" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(224, 239)

[node name="LongWoodPillar6" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(176, 120)

[node name="LongWoodPillar7" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(96, 280)

[node name="LongWoodPillar8" parent="MapElements" instance=ExtResource("8_mxq55")]
y_sort_enabled = true
position = Vector2(176, 279)

[node name="Walls" type="Sprite2D" parent="MapElements"]
z_index = 1
texture_filter = 1
position = Vector2(137, 199)
texture = ExtResource("7_pp5dn")

[node name="HiroPlayer" parent="." instance=ExtResource("1_c1gpq")]
position = Vector2(92, 178)
speed = 80

[node name="ReedPlayer" parent="." instance=ExtResource("6_cn8e2")]
position = Vector2(176, 178)

[node name="NemNPC" parent="." instance=ExtResource("1_sqt7d")]
position = Vector2(138, 112)

[node name="BG Collissions" type="StaticBody2D" parent="."]
z_index = 2
collision_layer = 17
collision_mask = 17

[node name="Floor Collission" type="CollisionPolygon2D" parent="BG Collissions"]
position = Vector2(-1341, -243)
scale = Vector2(8.83789, 4.22585)
polygon = PackedVector2Array(157.843, 76.9076, 161.464, 75.961, 172.213, 75.7244, 176.513, 76.9076, 179.22, 82.4429, 180.012, 85.7558, 180.36, 93.9456, 180.247, 114.06, 179.341, 117.373, 177.871, 119.739, 174.929, 120.922, 169.497, 120.922, 169.497, 123.525, 164.745, 123.525, 164.632, 120.922, 159.201, 120.922, 156.372, 120.213, 154.901, 117.373, 154.109, 114.533, 153.883, 94.4189, 153.883, 84.0068, 152.186, 83.0602, 152.412, 80.9304, 146.181, 70.3743, 139.513, 85.4266, 135.779, 90.8692, 147.66, 124.945, 187.367, 125.038, 195.514, 91.4351, 192.232, 66.1148, 173.676, 53.3363, 157.382, 53.8096, 152.404, 63.2751, 153.317, 81.6403, 153.883, 84.0068, 155.92, 79.9839)

[node name="StateChartDebugger" parent="." instance=ExtResource("2_o5str")]
offset_left = 296.0
offset_top = 11.0
offset_right = 884.0
offset_bottom = 1099.0
scale = Vector2(0.25, 0.25)
initial_node_to_watch = NodePath("../HiroAI")

[node name="HiroAI" parent="." node_paths=PackedStringArray("player_character") instance=ExtResource("5_r7nw4")]
position = Vector2(135, 215)
player_character = NodePath("../HiroPlayer")
health = 250
attack_power = 10

[node name="ExplosionGenerator" type="Node" parent="."]
script = ExtResource("9_df2wo")

[connection signal="attack_did_hit" from="HiroPlayer" to="HiroAI" method="_on_player_attack_did_hit"]
[connection signal="defeated" from="HiroPlayer" to="." method="_on_player_defeated"]
[connection signal="defeated" from="HiroPlayer" to="HiroAI" method="_on_player_been_defeated"]
[connection signal="attack_did_hit" from="HiroAI" to="HiroPlayer" method="_on_enemy_attack_did_hit"]
[connection signal="defeated" from="HiroAI" to="." method="_on_ai_defeated"]
