[gd_scene format=3 uid="uid://dkhyh5ce4iuk3"]

[ext_resource type="Script" uid="uid://bks7uplgjjdg0" path="res://nodes/combat_map.gd" id="1_jyv1f"]
[ext_resource type="Script" uid="uid://c6701vy8h5rfx" path="res://resources/resource_definitions/dl_tileset.gd" id="2_8rn0j"]
[ext_resource type="TileSet" uid="uid://dm5wl6d4xkstu" path="res://resources/combat_tileset.tres" id="3_8rn0j"]
[ext_resource type="Texture2D" uid="uid://sjsl8q7tkx8" path="res://assets/sprites/grid_highlight.png" id="3_vcj5e"]
[ext_resource type="Script" uid="uid://cxl38x2m6sj3w" path="res://scripts/grid_overlay.gd" id="4_jelju"]
[ext_resource type="Texture2D" uid="uid://h7nfrjxagqmc" path="res://assets/sprites/selector.png" id="5_muxvo"]
[ext_resource type="Script" uid="uid://b31eyqov8w7bm" path="res://scripts/tile_highlight.gd" id="7_tileh"]

[sub_resource type="Resource" id="Resource_vcj5e"]
script = ExtResource("2_8rn0j")
wall_tile_coords = Vector2i(2, 15)
metadata/_custom_type_script = "uid://c6701vy8h5rfx"

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_jelju"]
texture = ExtResource("3_vcj5e")
texture_region_size = Vector2i(48, 48)
0:0/animation_columns = 6
0:0/animation_frame_0/duration = 1.0
0:0/animation_frame_1/duration = 1.0
0:0/animation_frame_2/duration = 1.0
0:0/animation_frame_3/duration = 1.0
0:0/animation_frame_4/duration = 1.0
0:0/animation_frame_5/duration = 1.0
0:0/0 = 0

[sub_resource type="TileSet" id="TileSet_muxvo"]
tile_size = Vector2i(48, 48)
sources/0 = SubResource("TileSetAtlasSource_jelju")

[node name="CombatMap" type="Node2D" unique_id=546780706]
script = ExtResource("1_jyv1f")
tile_set = SubResource("Resource_vcj5e")

[node name="OverlayLayer" type="TileMapLayer" parent="." unique_id=1335660296]
unique_name_in_owner = true
tile_set = SubResource("TileSet_muxvo")
script = ExtResource("4_jelju")

[node name="TargetingIndicator" type="Sprite2D" parent="OverlayLayer" unique_id=1836328987]
visible = false
z_index = 3
texture = ExtResource("5_muxvo")
offset = Vector2(24, 24)

[node name="TerrainLayer" type="TileMapLayer" parent="." unique_id=1201875024]
unique_name_in_owner = true
tile_set = ExtResource("3_8rn0j")

[node name="TileHighlight" type="ColorRect" parent="." unique_id=211433569]
script = ExtResource("7_tileh")

[connection signal="tile_hovered" from="TileHighlight" to="." method="target_tile"]
