generated from krampus/template-godot4
120 lines
3.4 KiB
Plaintext
120 lines
3.4 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://bpi8owv5lxyjy"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://bgde73oxvye5t" path="res://prefabs/tiles/buildings/post_office.gd" id="1_0ascf"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://dijho2wx1l4sm" path="res://assets/bomb/bomb.png" id="3_vwkts"]
|
||
|
|
|
||
|
|
[sub_resource type="LabelSettings" id="LabelSettings_vwg8v"]
|
||
|
|
outline_size = 4
|
||
|
|
outline_color = Color(0, 0, 0, 1)
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vwg8v"]
|
||
|
|
size = Vector2(109, 109)
|
||
|
|
|
||
|
|
[node name="PostOffice" type="Node2D" unique_id=746270571]
|
||
|
|
process_mode = 3
|
||
|
|
script = ExtResource("1_0ascf")
|
||
|
|
|
||
|
|
[node name="Preview" type="Node2D" parent="." unique_id=515630033]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
|
||
|
|
[node name="Outline" type="ColorRect" parent="Preview" unique_id=889061850]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = -82.5
|
||
|
|
offset_top = -28.0
|
||
|
|
offset_right = 27.5
|
||
|
|
offset_bottom = 82.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(0, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect" type="ColorRect" parent="Preview/Outline" unique_id=803405966]
|
||
|
|
custom_minimum_size = Vector2(108, 108)
|
||
|
|
layout_mode = 0
|
||
|
|
offset_left = 1.0
|
||
|
|
offset_top = 1.0
|
||
|
|
offset_right = 109.0
|
||
|
|
offset_bottom = 109.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(0, 0.71932274, 0.79595864, 1)
|
||
|
|
|
||
|
|
[node name="Outline2" type="ColorRect" parent="Preview" unique_id=1396499698]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = -28.0
|
||
|
|
offset_top = -82.0
|
||
|
|
offset_right = 82.0
|
||
|
|
offset_bottom = 28.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(0, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect" type="ColorRect" parent="Preview/Outline2" unique_id=167610173]
|
||
|
|
custom_minimum_size = Vector2(108, 108)
|
||
|
|
layout_mode = 0
|
||
|
|
offset_left = 1.0
|
||
|
|
offset_top = 1.0
|
||
|
|
offset_right = 109.0
|
||
|
|
offset_bottom = 109.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(0, 0.71932274, 0.79595864, 1)
|
||
|
|
|
||
|
|
[node name="Size" type="Control" parent="Preview" unique_id=1036213581]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
layout_mode = 3
|
||
|
|
anchors_preset = 0
|
||
|
|
offset_left = -82.5
|
||
|
|
offset_top = -82.5
|
||
|
|
offset_right = 82.5
|
||
|
|
offset_bottom = 82.5
|
||
|
|
mouse_filter = 2
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="Preview" unique_id=29286194]
|
||
|
|
custom_minimum_size = Vector2(165, 165)
|
||
|
|
offset_left = -82.5
|
||
|
|
offset_top = -82.5
|
||
|
|
offset_right = 82.5
|
||
|
|
offset_bottom = 82.5
|
||
|
|
text = "POST
|
||
|
|
OFFICE"
|
||
|
|
label_settings = SubResource("LabelSettings_vwg8v")
|
||
|
|
horizontal_alignment = 1
|
||
|
|
vertical_alignment = 1
|
||
|
|
|
||
|
|
[node name="Board" type="Node2D" parent="." unique_id=1675613235]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
visible = false
|
||
|
|
|
||
|
|
[node name="Outline" type="ColorRect" parent="Board" unique_id=1599746913]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = -55.0
|
||
|
|
offset_top = -55.0
|
||
|
|
offset_right = 55.0
|
||
|
|
offset_bottom = 55.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(0, 0.7176471, 0.79607844, 1)
|
||
|
|
|
||
|
|
[node name="Label2" type="Label" parent="Board" unique_id=1535058806]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = -55.0
|
||
|
|
offset_top = -55.0
|
||
|
|
offset_right = 55.0
|
||
|
|
offset_bottom = 55.0
|
||
|
|
text = "POST
|
||
|
|
OFFICE"
|
||
|
|
label_settings = SubResource("LabelSettings_vwg8v")
|
||
|
|
horizontal_alignment = 1
|
||
|
|
vertical_alignment = 1
|
||
|
|
|
||
|
|
[node name="Square1" type="Area2D" parent="Board" unique_id=333775731]
|
||
|
|
process_mode = 3
|
||
|
|
monitoring = false
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Board/Square1" unique_id=1122204523]
|
||
|
|
process_mode = 3
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="BombSprite" type="Sprite2D" parent="Board" unique_id=2024150262]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
visible = false
|
||
|
|
scale = Vector2(0.415, 0.415)
|
||
|
|
texture = ExtResource("3_vwkts")
|
||
|
|
|
||
|
|
[connection signal="area_entered" from="Board/Square1" to="." method="_on_building_area_entered"]
|