generated from krampus/template-godot4
205 lines
6.4 KiB
Plaintext
205 lines
6.4 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://c1kyedmrep0tu"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://bnyy0ojlolrjj" path="res://prefabs/tiles/buildings/gun_shop.gd" id="1_llmep"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://t8n660a0vqvm" path="res://assets/Pixelart arrow icon pack 1.0.png" id="2_qam00"]
|
||
|
|
|
||
|
|
[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(110, 110)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wwwaf"]
|
||
|
|
atlas = ExtResource("2_qam00")
|
||
|
|
region = Rect2(16, 16, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fupku"]
|
||
|
|
atlas = ExtResource("2_qam00")
|
||
|
|
region = Rect2(0, 16, 16, 16)
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wwwaf"]
|
||
|
|
size = Vector2(1, 1)
|
||
|
|
|
||
|
|
[node name="GunShop" type="Node2D" unique_id=746270571]
|
||
|
|
process_mode = 3
|
||
|
|
script = ExtResource("1_llmep")
|
||
|
|
|
||
|
|
[node name="ColorRect" type="ColorRect" parent="." unique_id=889061850]
|
||
|
|
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(1, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect2" type="ColorRect" parent="." unique_id=255418342]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = -55.0
|
||
|
|
offset_top = -165.0
|
||
|
|
offset_right = 55.0
|
||
|
|
offset_bottom = -55.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(1, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect3" type="ColorRect" parent="." unique_id=1785049135]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = 55.0
|
||
|
|
offset_top = -165.0
|
||
|
|
offset_right = 165.0
|
||
|
|
offset_bottom = -55.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(1, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect4" type="ColorRect" parent="." unique_id=1660351199]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = -55.0
|
||
|
|
offset_top = -275.0
|
||
|
|
offset_right = 55.0
|
||
|
|
offset_bottom = -165.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(1, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect5" type="ColorRect" parent="." unique_id=1525506774]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = 55.0
|
||
|
|
offset_top = -275.0
|
||
|
|
offset_right = 165.0
|
||
|
|
offset_bottom = -165.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(1, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="ColorRect6" type="ColorRect" parent="." unique_id=1727297267]
|
||
|
|
custom_minimum_size = Vector2(110, 110)
|
||
|
|
offset_left = 165.0
|
||
|
|
offset_top = -275.0
|
||
|
|
offset_right = 275.0
|
||
|
|
offset_bottom = -165.0
|
||
|
|
mouse_filter = 2
|
||
|
|
color = Color(1, 0, 0, 1)
|
||
|
|
|
||
|
|
[node name="Label" type="Label" parent="." unique_id=29286194]
|
||
|
|
custom_minimum_size = Vector2(220, 220)
|
||
|
|
offset_left = -55.0
|
||
|
|
offset_top = -275.0
|
||
|
|
offset_right = 165.0
|
||
|
|
offset_bottom = -55.0
|
||
|
|
text = "GUN SHOP"
|
||
|
|
label_settings = SubResource("LabelSettings_vwg8v")
|
||
|
|
horizontal_alignment = 1
|
||
|
|
vertical_alignment = 1
|
||
|
|
|
||
|
|
[node name="BuildingArea" type="Area2D" parent="." unique_id=333775731]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
process_mode = 3
|
||
|
|
position = Vector2(-55, -165)
|
||
|
|
collision_layer = 0
|
||
|
|
collision_mask = 5
|
||
|
|
monitoring = false
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="BuildingArea" unique_id=1122204523]
|
||
|
|
process_mode = 3
|
||
|
|
position = Vector2(55, 165)
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="BuildingArea" unique_id=1638062176]
|
||
|
|
position = Vector2(55, 55)
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="BuildingArea" unique_id=1549040997]
|
||
|
|
position = Vector2(165, 55)
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D4" type="CollisionShape2D" parent="BuildingArea" unique_id=1578115167]
|
||
|
|
position = Vector2(55, -55)
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D5" type="CollisionShape2D" parent="BuildingArea" unique_id=1640076722]
|
||
|
|
position = Vector2(165, -55)
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D6" type="CollisionShape2D" parent="BuildingArea" unique_id=1850783102]
|
||
|
|
position = Vector2(275, -55)
|
||
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
||
|
|
|
||
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1585332168]
|
||
|
|
texture_filter = 1
|
||
|
|
position = Vector2(300, -230)
|
||
|
|
rotation = 1.5707964
|
||
|
|
scale = Vector2(2, 2)
|
||
|
|
texture = SubResource("AtlasTexture_wwwaf")
|
||
|
|
flip_v = true
|
||
|
|
|
||
|
|
[node name="Sprite2D2" type="Sprite2D" parent="." unique_id=1969702659]
|
||
|
|
texture_filter = 1
|
||
|
|
position = Vector2(300, -210)
|
||
|
|
rotation = -1.5707964
|
||
|
|
scale = Vector2(2, 2)
|
||
|
|
texture = SubResource("AtlasTexture_fupku")
|
||
|
|
flip_v = true
|
||
|
|
|
||
|
|
[node name="Sprite2D3" type="Sprite2D" parent="." unique_id=1370361419]
|
||
|
|
texture_filter = 1
|
||
|
|
position = Vector2(-10, 80)
|
||
|
|
rotation = 3.1415927
|
||
|
|
scale = Vector2(2, 2)
|
||
|
|
texture = SubResource("AtlasTexture_wwwaf")
|
||
|
|
flip_v = true
|
||
|
|
|
||
|
|
[node name="Sprite2D4" type="Sprite2D" parent="." unique_id=1801878139]
|
||
|
|
texture_filter = 1
|
||
|
|
position = Vector2(10, 80)
|
||
|
|
scale = Vector2(2, 2)
|
||
|
|
texture = SubResource("AtlasTexture_fupku")
|
||
|
|
flip_v = true
|
||
|
|
|
||
|
|
[node name="Square" type="Area2D" parent="." unique_id=1309579334]
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 0
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square" unique_id=2040153103]
|
||
|
|
shape = SubResource("RectangleShape2D_wwwaf")
|
||
|
|
|
||
|
|
[node name="Square2" type="Area2D" parent="." unique_id=289882156]
|
||
|
|
position = Vector2(0, -110)
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 0
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square2" unique_id=1476676009]
|
||
|
|
shape = SubResource("RectangleShape2D_wwwaf")
|
||
|
|
|
||
|
|
[node name="Square3" type="Area2D" parent="." unique_id=520831463]
|
||
|
|
position = Vector2(110, -110)
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 0
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square3" unique_id=309772651]
|
||
|
|
shape = SubResource("RectangleShape2D_wwwaf")
|
||
|
|
|
||
|
|
[node name="Square4" type="Area2D" parent="." unique_id=229115924]
|
||
|
|
position = Vector2(0, -220)
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 0
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square4" unique_id=261500077]
|
||
|
|
shape = SubResource("RectangleShape2D_wwwaf")
|
||
|
|
|
||
|
|
[node name="Square5" type="Area2D" parent="." unique_id=826236086]
|
||
|
|
position = Vector2(110, -220)
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 0
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square5" unique_id=1360179714]
|
||
|
|
shape = SubResource("RectangleShape2D_wwwaf")
|
||
|
|
|
||
|
|
[node name="Square6" type="Area2D" parent="." unique_id=1250539767]
|
||
|
|
position = Vector2(220, -220)
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 0
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square6" unique_id=783421603]
|
||
|
|
shape = SubResource("RectangleShape2D_wwwaf")
|
||
|
|
|
||
|
|
[connection signal="area_entered" from="BuildingArea" to="." method="_on_building_area_entered"]
|