2024-09-12 02:40:54 +00:00
|
|
|
[gd_scene load_steps=14 format=3 uid="uid://5ske2hm55rce"]
|
2024-09-08 17:34:41 +00:00
|
|
|
|
|
|
|
[ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_xbn5h"]
|
2024-09-09 17:46:51 +00:00
|
|
|
[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"]
|
2024-09-12 02:40:54 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bdmao1k7ngu2m" path="res://basic_tiles.png" id="4_h72lx"]
|
2024-09-09 17:55:23 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="5_6lpdu"]
|
2024-09-09 17:46:51 +00:00
|
|
|
[ext_resource type="Script" path="res://tile_map.gd" id="5_v47eg"]
|
2024-09-12 02:04:24 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://byyyhq3x8t2d8" path="res://InfoWindow.tscn" id="7_f4xfy"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b22pr3istdhcv" path="res://ui/BuildingMenu.tscn" id="7_hnxcf"]
|
2024-09-09 17:46:51 +00:00
|
|
|
|
|
|
|
[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
|
|
|
|
|
2024-09-12 02:40:54 +00:00
|
|
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_w6tof"]
|
|
|
|
texture = ExtResource("4_h72lx")
|
|
|
|
1:3/0 = 0
|
|
|
|
3:3/0 = 0
|
|
|
|
1:6/0 = 0
|
|
|
|
3:6/0 = 0
|
|
|
|
1:7/0 = 0
|
|
|
|
3:7/0 = 0
|
|
|
|
1:1/0 = 0
|
|
|
|
3:1/0 = 0
|
|
|
|
|
2024-09-09 17:46:51 +00:00
|
|
|
[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")
|
2024-09-12 02:40:54 +00:00
|
|
|
sources/2 = SubResource("TileSetAtlasSource_w6tof")
|
2024-09-08 17:34:41 +00:00
|
|
|
|
2024-09-14 00:09:38 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_57goo"]
|
|
|
|
size = Vector2(324, 314)
|
2024-09-09 17:55:23 +00:00
|
|
|
|
2024-09-08 17:34:41 +00:00
|
|
|
[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")
|
2024-09-09 17:46:51 +00:00
|
|
|
|
|
|
|
[node name="TileMap" type="TileMap" parent="."]
|
|
|
|
tile_set = SubResource("TileSet_2mye8")
|
|
|
|
rendering_quadrant_size = 128
|
|
|
|
format = 2
|
|
|
|
layer_1/name = "Layer1"
|
2024-09-10 01:34:30 +00:00
|
|
|
layer_2/name = "Layer2"
|
|
|
|
layer_3/name = "Layer3"
|
|
|
|
layer_4/name = "Layer4"
|
|
|
|
layer_5/name = "Layer5"
|
2024-09-09 17:46:51 +00:00
|
|
|
script = ExtResource("5_v47eg")
|
|
|
|
|
2024-09-09 17:55:23 +00:00
|
|
|
[node name="MouseHandler" parent="TileMap" instance=ExtResource("5_6lpdu")]
|
2024-09-12 02:40:54 +00:00
|
|
|
position = Vector2(319, 177)
|
2024-09-09 17:55:23 +00:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TileMap/MouseHandler"]
|
2024-09-14 00:09:38 +00:00
|
|
|
rotation = 0.750492
|
|
|
|
shape = SubResource("RectangleShape2D_57goo")
|
2024-09-09 17:55:23 +00:00
|
|
|
|
2024-09-09 17:46:51 +00:00
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
2024-09-12 02:04:24 +00:00
|
|
|
position = Vector2(-48, -46)
|
2024-09-10 01:34:30 +00:00
|
|
|
offset = Vector2(50, 150)
|
2024-09-09 17:55:23 +00:00
|
|
|
|
2024-09-12 02:04:24 +00:00
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
|
|
|
|
[node name="InfoWindow" parent="CanvasLayer" instance=ExtResource("7_f4xfy")]
|
2024-09-14 00:20:51 +00:00
|
|
|
pivot_offset = Vector2(114, 128)
|
2024-09-12 02:04:24 +00:00
|
|
|
|
|
|
|
[node name="BuildingMenu" parent="CanvasLayer" instance=ExtResource("7_hnxcf")]
|
2024-09-11 23:39:13 +00:00
|
|
|
|
2024-09-09 17:55:23 +00:00
|
|
|
[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"]
|