-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlant.tscn
80 lines (69 loc) · 2 KB
/
Plant.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Plant.gd" type="Script" id=1]
[ext_resource path="res://resources/plants/PlantPhaseRes.gd" type="Script" id=2]
[ext_resource path="res://assets/plant.png" type="Texture" id=3]
[ext_resource path="res://resources/plants/PlantRes.gd" type="Script" id=4]
[ext_resource path="res://assets/seed.png" type="Texture" id=5]
[sub_resource type="Resource" id=1]
resource_name = "Placeholder Lv 0"
script = ExtResource( 2 )
texture = ExtResource( 5 )
life_capacity = 1
water_capacity = 1
water_draw = 1.0
energy_draw = 1.0
energy_draw_range = 1
growth_rate = 1.0
[sub_resource type="Resource" id=2]
resource_name = "Placeholder"
script = ExtResource( 4 )
plant_name = "placeholder"
phases = [ SubResource( 1 ) ]
[sub_resource type="CircleShape2D" id=4]
radius = 16.0
[sub_resource type="Animation" id=3]
length = 0.3
tracks/0/type = "value"
tracks/0/path = NodePath("PlantSprite:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( 2, 1 ),
"update": 0,
"values": [ Vector2( 0, -24 ), Vector2( 0, 0 ) ]
}
[node name="Plant" type="StaticBody2D" groups=[
"plant",
]]
collision_layer = 2
collision_mask = 2147483664
script = ExtResource( 1 )
plant_resource = SubResource( 2 )
[node name="PlantShape" type="CollisionShape2D" parent="."]
shape = SubResource( 4 )
[node name="PlantSprite" type="Sprite" parent="."]
texture = ExtResource( 3 )
offset = Vector2( 0, -16 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/drop = SubResource( 3 )
[node name="HPLabel" type="Label" parent="."]
margin_top = 8.0
grow_horizontal = 2
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "HP"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="WaterLabel" type="Label" parent="."]
margin_top = 24.0
grow_horizontal = 2
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Vita"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}