summaryrefslogtreecommitdiff
path: root/Drawable.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Drawable.lua')
-rw-r--r--Drawable.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/Drawable.lua b/Drawable.lua
new file mode 100644
index 0000000..54e0f46
--- /dev/null
+++ b/Drawable.lua
@@ -0,0 +1,9 @@
+local component = require 'component'
+
+-- component for objects that are drawable
+local Drawable = component()
+function Drawable:init(inst)
+ inst.z = inst.z or 0
+end
+
+return Drawable