From 004f3602bacab63c0f77e00577a306855a8fdb8e Mon Sep 17 00:00:00 2001 From: Victor Andrade de Almeida Date: Sat, 16 Jul 2022 02:14:06 -0300 Subject: add doors and keys --- Scenes/Plate.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Scenes/Plate.gd (limited to 'Scenes/Plate.gd') 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 -- cgit v1.2.3