63 lines
2.1 KiB
Text
63 lines
2.1 KiB
Text
|
[gd_scene load_steps=10 format=3 uid="uid://5ske2hm55rce"]
|
||
|
|
||
|
[ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_xbn5h"]
|
||
|
[ext_resource type="Texture2D" uid="uid://bsrh0u02bckhy" path="res://iso_building.png" id="3_qa5pv"]
|
||
|
[ext_resource type="Texture2D" uid="uid://bvn5lewpp7pmd" path="res://iso_tile.png" id="4_7pks7"]
|
||
|
[ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="5_6lpdu"]
|
||
|
[ext_resource type="Script" path="res://tile_map.gd" id="5_v47eg"]
|
||
|
|
||
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dxrqb"]
|
||
|
texture = ExtResource("4_7pks7")
|
||
|
margins = Vector2i(16, 16)
|
||
|
1:1/0 = 0
|
||
|
0:0/0 = 0
|
||
|
|
||
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_j7eew"]
|
||
|
texture = ExtResource("3_qa5pv")
|
||
|
margins = Vector2i(15, 14)
|
||
|
texture_region_size = Vector2i(18, 20)
|
||
|
1:1/0 = 0
|
||
|
0:0/0 = 0
|
||
|
|
||
|
[sub_resource type="TileSet" id="TileSet_2mye8"]
|
||
|
tile_shape = 1
|
||
|
tile_layout = 5
|
||
|
tile_size = Vector2i(16, 8)
|
||
|
sources/0 = SubResource("TileSetAtlasSource_dxrqb")
|
||
|
sources/1 = SubResource("TileSetAtlasSource_j7eew")
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_s8q4l"]
|
||
|
radius = 134.7
|
||
|
|
||
|
[node name="Main" type="Node2D"]
|
||
|
|
||
|
[node name="Control" type="Control" parent="."]
|
||
|
layout_mode = 3
|
||
|
anchors_preset = 0
|
||
|
offset_right = 40.0
|
||
|
offset_bottom = 40.0
|
||
|
theme = ExtResource("1_xbn5h")
|
||
|
|
||
|
[node name="TileMap" type="TileMap" parent="."]
|
||
|
tile_set = SubResource("TileSet_2mye8")
|
||
|
rendering_quadrant_size = 128
|
||
|
format = 2
|
||
|
layer_1/name = "Layer1"
|
||
|
layer_2/name = "Layer2"
|
||
|
layer_3/name = "Layer3"
|
||
|
layer_4/name = "Layer4"
|
||
|
layer_5/name = "Layer5"
|
||
|
script = ExtResource("5_v47eg")
|
||
|
|
||
|
[node name="MouseHandler" parent="TileMap" instance=ExtResource("5_6lpdu")]
|
||
|
position = Vector2(318, 178)
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TileMap/MouseHandler"]
|
||
|
shape = SubResource("CircleShape2D_s8q4l")
|
||
|
|
||
|
[node name="Camera2D" type="Camera2D" parent="."]
|
||
|
offset = Vector2(50, 150)
|
||
|
|
||
|
[connection signal="clicked" from="TileMap/MouseHandler" to="TileMap" method="_on_mouse_handler_clicked"]
|
||
|
[connection signal="rclicked" from="TileMap/MouseHandler" to="TileMap" method="_on_mouse_handler_rclicked"]
|