summaryrefslogtreecommitdiff
path: root/Scenes/Plate.gd
diff options
context:
space:
mode:
authorVictor Andrade de Almeida <vct.a.almeida@gmail.com>2022-07-16 02:14:06 -0300
committerVictor Andrade de Almeida <vct.a.almeida@gmail.com>2022-07-16 02:14:06 -0300
commit004f3602bacab63c0f77e00577a306855a8fdb8e (patch)
tree2e9d60989b8440473fa1c507e07118e058da7161 /Scenes/Plate.gd
parent8d121400b0fac6f61328cb055b91ea5636c7db3c (diff)
downloadgamejam-gmtk-2022-004f3602bacab63c0f77e00577a306855a8fdb8e.tar.gz
gamejam-gmtk-2022-004f3602bacab63c0f77e00577a306855a8fdb8e.tar.bz2
gamejam-gmtk-2022-004f3602bacab63c0f77e00577a306855a8fdb8e.zip
add doors and keys
Diffstat (limited to 'Scenes/Plate.gd')
-rw-r--r--Scenes/Plate.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/Scenes/Plate.gd b/Scenes/Plate.gd
new file mode 100644
index 0000000..c819cf1
--- /dev/null
+++ b/Scenes/Plate.gd
@@ -0,0 +1,12 @@
+extends Spatial
+
+class_name Plate
+
+export(Array, String) var valid_symbols
+
+func step(symbol : String):
+ if valid_symbols.empty() or valid_symbols.has(symbol):
+ activate()
+
+func activate():
+ pass