Keeping Files Clean
Do all of your gimmick related work within the
/srcfolder.Setup goes in
main.lua. Actors and Gizmos go inlayout.lua. Gimmicks go ingimmicks.lua.Make use of the user-defined hooks (
init,ready,update, etc.) when necessary.Keep all class definitions in the
/includefolder and include them with theincludemethod.Keep all libraries in the
/libfolder. They autoload from there.Likewise, keep all plugins inside
/src/plugins. They are also autoloaded.includeat the top of the file.runat the bottom.If you plan to write code that other files will depend on, consider a library or a header.
If your code depends on a library, do not write it as a library. Libraries should not depend on anything and serve only to extend the
ichienvironment table passed to them. Consider a header or a plugin instead.Don't be afraid to ask me any questions! You can contact me (Sudospective) in the Project OutFox Discord server.
Last updated
Was this helpful?