-
Notifications
You must be signed in to change notification settings - Fork 0
/
soiC7BD.tmp
90 lines (75 loc) · 3.03 KB
/
soiC7BD.tmp
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
81
82
83
84
85
86
87
88
89
90
[gd_scene load_steps=12 format=3 uid="uid://bb7dngtyrebp0"]
[ext_resource type="Texture2D" uid="uid://0kbwuy21vkan" path="res://plots/plot_grass.png" id="1_fofen"]
[ext_resource type="Texture2D" uid="uid://bmqqno5mxhm62" path="res://plots/plot_plowed_ready.png" id="1_ilfcp"]
[ext_resource type="Texture2D" uid="uid://cjqvwc6taj2fw" path="res://plots/plot_plowed.png" id="3_jd8jv"]
[ext_resource type="Texture2D" uid="uid://bb5cpmqef7re7" path="res://plots/plot_plowed_not_ready.png" id="4_sdgrm"]
[ext_resource type="Texture2D" uid="uid://37fjabwkjqe8" path="res://plots/plot_plowed_sapling.png" id="6_5i2kk"]
[ext_resource type="Texture2D" uid="uid://x6kpjuc4n1kv" path="res://plots/plot_plowed_seeded.png" id="6_pnkbl"]
[ext_resource type="Texture2D" uid="uid://6dg6m0ijhv4a" path="res://plots/plot_plowed_watered.png" id="7_broiu"]
[ext_resource type="Texture2D" uid="uid://cpxg20cd2qjux" path="res://plots/plot_plowed_watered_not_ready.png" id="8_1f4n2"]
[ext_resource type="Texture2D" uid="uid://bya5kufx4fs5o" path="res://plots/plot_plowed_watered_sapling.png" id="9_oxqos"]
[ext_resource type="Texture2D" uid="uid://x2n74gcl3n7v" path="res://plots/plot_plowed_watered_seeded.png" id="10_gpc3e"]
[sub_resource type="GDScript" id="GDScript_d3ckt"]
script/source = "extends Node2D
enum plotState{
plotGrass,
plotPlowed,
plotPlowedNotReady,
plotPlowedReady,
plotPlowedSapling,
plotPlowedSeeded,
plotPlowedWatered,
plotPlowedWateredNotReady,
plotPlowedWateredSapling,
plotPlowedWateredSeeded
}
@export
var plot_grass: CompressedTexture2D
@export
var plot_plowed: CompressedTexture2D
@export
var plot_plowed_not_ready: CompressedTexture2D
@export
var plot_plowed_ready: CompressedTexture2D
@export
var plot_plowed_sapling: CompressedTexture2D
@export
var plot_plowed_seeded: CompressedTexture2D
@export
var plot_plowed_watered: CompressedTexture2D
@export
var plot_plowed_watered_not_ready: CompressedTexture2D
@export
var plot_plowed_watered_sapling: CompressedTexture2D
@export
var plot_plowed_watered_seeded: CompressedTexture2D
var current_state: plotState = plotState.plotGrass
@onready
var picture = $picture
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func plow():
pass
func water():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
match current_state:
plotState.plotGrass:
picture.texture = plot_plowed_watered_seeded
"
[node name="Soil" type="Node2D"]
script = SubResource("GDScript_d3ckt")
plot_grass = ExtResource("1_fofen")
plot_plowed = ExtResource("3_jd8jv")
plot_plowed_not_ready = ExtResource("4_sdgrm")
plot_plowed_ready = ExtResource("1_ilfcp")
plot_plowed_sapling = ExtResource("6_5i2kk")
plot_plowed_seeded = ExtResource("6_pnkbl")
plot_plowed_watered = ExtResource("7_broiu")
plot_plowed_watered_not_ready = ExtResource("8_1f4n2")
plot_plowed_watered_sapling = ExtResource("9_oxqos")
plot_plowed_watered_seeded = ExtResource("10_gpc3e")
[node name="picture" type="Sprite2D" parent="."]
texture = ExtResource("1_fofen")