generated from krampus/template-godot4
95 lines
2.9 KiB
Plaintext
95 lines
2.9 KiB
Plaintext
[gd_scene format=3 uid="uid://cphy0vtj14ob0"]
|
|
|
|
[ext_resource type="Script" uid="uid://dib6oco6b3wfl" path="res://prefabs/tiles/buildings/fork.gd" id="1_pht35"]
|
|
[ext_resource type="Texture2D" uid="uid://t8n660a0vqvm" path="res://assets/Pixelart arrow icon pack 1.0.png" id="2_rnjsh"]
|
|
[ext_resource type="Texture2D" uid="uid://dijho2wx1l4sm" path="res://assets/bomb/bomb.png" id="3_rnjsh"]
|
|
|
|
[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)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fupku"]
|
|
atlas = ExtResource("2_rnjsh")
|
|
region = Rect2(0, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wwwaf"]
|
|
atlas = ExtResource("2_rnjsh")
|
|
region = Rect2(16, 16, 16, 16)
|
|
|
|
[node name="Fork" type="Node2D" unique_id=746270571]
|
|
process_mode = 3
|
|
script = ExtResource("1_pht35")
|
|
|
|
[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(0.48452926, 0.48452926, 0.48452926, 1)
|
|
|
|
[node name="Label" type="Label" parent="." unique_id=29286194]
|
|
custom_minimum_size = Vector2(110, 110)
|
|
offset_left = -55.0
|
|
offset_top = -55.0
|
|
offset_right = 55.0
|
|
offset_bottom = 55.0
|
|
text = "FORK"
|
|
label_settings = SubResource("LabelSettings_vwg8v")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="Square1" type="Area2D" parent="." unique_id=333775731]
|
|
process_mode = 3
|
|
monitoring = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Square1" unique_id=1122204523]
|
|
process_mode = 3
|
|
shape = SubResource("RectangleShape2D_vwg8v")
|
|
|
|
[node name="Sprite2D2" type="Sprite2D" parent="." unique_id=1969702659]
|
|
texture_filter = 1
|
|
position = Vector2(80, 0)
|
|
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(0, 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(-80, 0)
|
|
rotation = 1.5707964
|
|
scale = Vector2(2, 2)
|
|
texture = SubResource("AtlasTexture_fupku")
|
|
flip_v = true
|
|
|
|
[node name="Size" type="Control" parent="." unique_id=1036213581]
|
|
unique_name_in_owner = true
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_left = -95.0
|
|
offset_top = -55.0
|
|
offset_right = 95.0
|
|
offset_bottom = 95.0
|
|
mouse_filter = 2
|
|
|
|
[node name="BombSprite" type="Sprite2D" parent="." unique_id=2024150262]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
scale = Vector2(0.415, 0.415)
|
|
texture = ExtResource("3_rnjsh")
|
|
|
|
[connection signal="area_entered" from="Square1" to="." method="_on_building_area_entered"]
|