diff options
author | Victor Andrade de Almeida <vct.a.almeida@gmail.com> | 2022-07-16 02:14:06 -0300 |
---|---|---|
committer | Victor Andrade de Almeida <vct.a.almeida@gmail.com> | 2022-07-16 02:14:06 -0300 |
commit | 004f3602bacab63c0f77e00577a306855a8fdb8e (patch) | |
tree | 2e9d60989b8440473fa1c507e07118e058da7161 /Scenes/Plate.gd | |
parent | 8d121400b0fac6f61328cb055b91ea5636c7db3c (diff) | |
download | gamejam-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.gd | 12 |
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 |