-
Notifications
You must be signed in to change notification settings - Fork 0
/
farm_plot.tscn
30 lines (22 loc) · 929 Bytes
/
farm_plot.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/plot.png" type="Texture" id=1]
[ext_resource path="res://farm_plot.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 6, 6 )
[node name="farm_plot" type="Node2D" groups=["plot"]]
script = ExtResource( 2 )
crop_state_images = [ null, null, null ]
[node name="plot" type="TextureButton" parent="."]
margin_right = 16.0
margin_bottom = 16.0
texture_normal = ExtResource( 1 )
[node name="crop" type="Area2D" parent="."]
input_pickable = false
monitoring = false
[node name="Sprite" type="Sprite" parent="crop"]
position = Vector2( 8, 6 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="crop"]
position = Vector2( 8, 8 )
shape = SubResource( 1 )
[connection signal="gui_input" from="plot" to="." method="_on_plot_gui_input"]
[connection signal="area_entered" from="crop" to="." method="_on_crop_area_entered"]