generated from krampus/template-godot4
75 lines
2.1 KiB
Plaintext
75 lines
2.1 KiB
Plaintext
[gd_scene format=3 uid="uid://bto4vblqk2inb"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://i2lfgel7lsqe" path="res://assets/Pattern-Panic-10x10/no-background/Circles.png" id="1_i0ot4"]
|
|
[ext_resource type="Script" uid="uid://ch1qywbfphfqy" path="res://prefabs/tiles/home.gd" id="2_g5sxs"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2y6xd"]
|
|
atlas = ExtResource("1_i0ot4")
|
|
region = Rect2(30, 110, 10, 10)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_26feb"]
|
|
font_size = 24
|
|
outline_size = 4
|
|
outline_color = Color(0, 0, 0, 1)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i0ot4"]
|
|
size = Vector2(100, 100)
|
|
|
|
[node name="Home" type="TextureRect" unique_id=1316631070]
|
|
texture_filter = 1
|
|
custom_minimum_size = Vector2(100, 100)
|
|
offset_left = -50.0
|
|
offset_top = -50.0
|
|
offset_right = 50.0
|
|
offset_bottom = 50.0
|
|
texture = SubResource("AtlasTexture_2y6xd")
|
|
script = ExtResource("2_g5sxs")
|
|
|
|
[node name="Label" type="Label" parent="." unique_id=134308374]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -42.5
|
|
offset_top = -17.0
|
|
offset_right = 42.5
|
|
offset_bottom = 17.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
text = "HOME"
|
|
label_settings = SubResource("LabelSettings_26feb")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="Amount" type="Label" parent="." unique_id=1728513182]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -42.5
|
|
offset_top = -17.0
|
|
offset_right = 42.5
|
|
offset_bottom = 17.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
text = "SPAWN"
|
|
label_settings = SubResource("LabelSettings_26feb")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=2110660720]
|
|
unique_name_in_owner = true
|
|
position = Vector2(50, 50)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=2100290177]
|
|
shape = SubResource("RectangleShape2D_i0ot4")
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="handle_body_entered"]
|