Доработка. Улучшено отображение карт
This commit is contained in:
@@ -1,14 +1,26 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bbq6nklh36yij"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ceknxxfu1loo5"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/tilemap/tilemap.gd" id="1_mkfgj"]
|
||||
[ext_resource type="Shader" path="res://shaders/tilemap.gdshader" id="1_tsdui"]
|
||||
[ext_resource type="Script" path="res://scenes/tilemap/tilemap.gd" id="1_l64tp"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pmqvj"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("1_tsdui")
|
||||
shader_parameter/radius = 0.39
|
||||
[sub_resource type="CanvasTexture" id="CanvasTexture_58cl1"]
|
||||
|
||||
[node name="tilemap" type="Sprite2D"]
|
||||
material = SubResource("ShaderMaterial_pmqvj")
|
||||
position = Vector2(560, 560)
|
||||
script = ExtResource("1_mkfgj")
|
||||
[node name="tilemap" type="CanvasGroup" groups=["gui_items"]]
|
||||
script = ExtResource("1_l64tp")
|
||||
az = 2.0
|
||||
|
||||
[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"]]
|
||||
|
||||
[connection signal="resized" from="canvas" to="." method="_on_resize"]
|
||||
|
||||
Reference in New Issue
Block a user