Files
mortal-maze-the-game/pickups/pickup.tscn
T

40 lines
1.0 KiB
Plaintext

[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://pickups/pickup.gd" id="1_pickup"]
[ext_resource type="FontFile" path="res://assets/fonts/PixelOperator8.ttf" id="2_font"]
[sub_resource type="RectangleShape2D" id="PickupShape"]
size = Vector2(28, 24)
[node name="Pickup" type="Area2D"]
z_index = 2
collision_layer = 0
collision_mask = 2
monitoring = true
script = ExtResource("1_pickup")
[node name="Sprite2D" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 1)
scale = Vector2(0.5, 0.5)
[node name="ColorRect" type="ColorRect" parent="Sprite2D"]
offset_left = -16.0
offset_top = -16.0
offset_right = 16.0
offset_bottom = 16.0
color = Color(1, 1, 1, 1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("PickupShape")
[node name="Label" type="Label" parent="."]
offset_left = -32.0
offset_top = -28.0
offset_right = 32.0
offset_bottom = -12.0
theme_override_fonts/font = ExtResource("2_font")
theme_override_font_sizes/font_size = 8
text = "Item"
horizontal_alignment = 1
vertical_alignment = 1