diff options
| author | the lemons <citrons@mondecitronne.com> | 2022-08-27 01:23:20 -0500 |
|---|---|---|
| committer | the lemons <citrons@mondecitronne.com> | 2022-08-27 01:23:20 -0500 |
| commit | 8bb18a89060ecd581a06238ce3fa5d2170ee3a15 (patch) | |
| tree | 25baba9d2c267b986adfe7af661b3cd99a32b346 /Drawable.lua | |
| parent | 001272dbcbaa1110541e0666af3cea1c97bc199f (diff) | |
implement component system
Diffstat (limited to 'Drawable.lua')
| -rw-r--r-- | Drawable.lua | 9 |
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 |
