122 lines
3.4 KiB
Plaintext
122 lines
3.4 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://dg0qxdwe2rlcn"]
|
|
|
|
[ext_resource type="Script" uid="uid://dxcfy8xypdde6" path="res://scripts/isometric_map_layer_holder.gd" id="1_4o54u"]
|
|
[ext_resource type="Texture2D" uid="uid://p8iyle6kr3nf" path="res://assets/sprites/tiles/iso_tileset.png" id="1_fme3d"]
|
|
|
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_4o54u"]
|
|
texture = ExtResource("1_fme3d")
|
|
texture_region_size = Vector2i(32, 32)
|
|
0:0/0 = 0
|
|
0:0/0/texture_origin = Vector2i(0, -8)
|
|
1:0/0 = 0
|
|
1:0/0/texture_origin = Vector2i(0, -8)
|
|
2:0/0 = 0
|
|
2:0/0/texture_origin = Vector2i(0, -8)
|
|
3:0/0 = 0
|
|
3:0/0/texture_origin = Vector2i(0, -8)
|
|
4:0/0 = 0
|
|
4:0/0/texture_origin = Vector2i(0, -8)
|
|
5:0/0 = 0
|
|
5:0/0/texture_origin = Vector2i(0, -8)
|
|
6:0/0 = 0
|
|
6:0/0/texture_origin = Vector2i(0, -8)
|
|
|
|
[sub_resource type="TileSet" id="TileSet_s16iq"]
|
|
tile_shape = 1
|
|
tile_layout = 5
|
|
tile_offset_axis = 1
|
|
tile_size = Vector2i(32, 16)
|
|
sources/0 = SubResource("TileSetAtlasSource_4o54u")
|
|
|
|
[node name="IsometricMapLayerHolder" type="Node2D"]
|
|
script = ExtResource("1_4o54u")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
zoom = Vector2(0.5, 0.5)
|
|
|
|
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
|
tile_set = SubResource("TileSet_s16iq")
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="ResetButton" type="Button" parent="CanvasLayer"]
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -25.5
|
|
offset_top = -31.0
|
|
offset_right = 25.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
text = "Reset"
|
|
|
|
[node name="Z_CW" type="Button" parent="CanvasLayer"]
|
|
anchors_preset = 6
|
|
anchor_left = 1.0
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_left = -34.0
|
|
offset_top = -15.5
|
|
offset_bottom = 15.5
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
text = "Rotate CW Z-Axis"
|
|
|
|
[node name="Z_CCW" type="Button" parent="CanvasLayer"]
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_top = -15.5
|
|
offset_right = 44.0
|
|
offset_bottom = 15.5
|
|
grow_vertical = 2
|
|
text = "Rotate CCW Z-Axis"
|
|
|
|
[node name="X_CW" type="Button" parent="CanvasLayer"]
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -140.0
|
|
offset_top = -31.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
text = "Rotate CW X-Axis"
|
|
|
|
[node name="X_CCW" type="Button" parent="CanvasLayer"]
|
|
offset_right = 150.0
|
|
offset_bottom = 31.0
|
|
text = "Rotate CCW X-Axis"
|
|
|
|
[node name="Y_CW" type="Button" parent="CanvasLayer"]
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -31.0
|
|
offset_right = 139.0
|
|
grow_vertical = 0
|
|
text = "Rotate CW Y-Axis"
|
|
|
|
[node name="Y_CCW" type="Button" parent="CanvasLayer"]
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -150.0
|
|
offset_bottom = 31.0
|
|
grow_horizontal = 0
|
|
text = "Rotate CCW Y-Axis"
|
|
|
|
[connection signal="pressed" from="CanvasLayer/ResetButton" to="." method="_on_reset_button_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Z_CW" to="." method="_on_cw_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Z_CCW" to="." method="_on_ccw_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/X_CW" to="." method="_on_x_cw_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/X_CCW" to="." method="_on_x_ccw_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Y_CW" to="." method="_on_y_cw_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Y_CCW" to="." method="_on_y_ccw_pressed"]
|