[gd_scene load_steps=6 format=3 uid="uid://ceknxxfu1loo5"]

[ext_resource type="Script" uid="uid://ku3ik72m63gy" path="res://scenes/tilemap/tilemap.gd" id="1_l64tp"]

[sub_resource type="CanvasTexture" id="CanvasTexture_58cl1"]

[sub_resource type="Shader" id="Shader_1eosy"]
code = "// NOTE: Shader automatically converted from Godot Engine 4.4.1.stable's CanvasItemMaterial.

shader_type canvas_item;
render_mode blend_sub;

instance uniform float radius = 50.0;

void fragment()
{   
    float ds = radius / 200.0;
    vec2 center = vec2(radius, radius);
    COLOR = vec4(1.0, 1.0, 1.0, 1.0);
    COLOR.a *= smoothstep(radius - ds * 2.0, radius + ds, distance(UV, center));
}"

[sub_resource type="ShaderMaterial" id="ShaderMaterial_nlxlh"]
shader = SubResource("Shader_1eosy")

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_t6vky"]
size = Vector2(400, 400)

[node name="tilemap" type="CanvasGroup" groups=["gui_items"]]
script = ExtResource("1_l64tp")

[node name="canvas" type="TextureRect" parent="." groups=["gui_items"]]
clip_contents = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 400.0
offset_bottom = 400.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = SubResource("CanvasTexture_58cl1")

[node name="player" type="AnimationPlayer" parent="canvas" groups=["gui_items"]]

[node name="spr_mask" type="Sprite2D" parent="canvas" groups=["gui_items"]]
material = SubResource("ShaderMaterial_nlxlh")
instance_shader_parameters/radius = 50.0
position = Vector2(200, 200)
texture = SubResource("PlaceholderTexture2D_t6vky")

[connection signal="resized" from="canvas" to="." method="_on_resize"]
