Using External Plugins

jtrunick edited this page Nov 5, 2014 · 2 revisions

Using plugins in 1.5+

There is now support for moai modules that are not part of the sdk. To use a plugin, create a plugins folder somewhere for your project and check out the plugin to a subfolder there.

For example to add vavius' spine module:

cd myproject
mkdir plugins
cd plugins
git clone https://github.com/moaiforge/plugin-moai-spine.git moai-spine

Now we just need to edit our cmake command line (in whichever script you use, eg create-projects-win.bat found under /moai-dev/bin) to add -DPLUGIN_MOAI-SPINE=1 and -DPLUGIN_DIR=<projectdir>/plugins

When you run the command you should see it mention that the plugin has been added (somewhere in its output) and the moai-spine project should show up in the ide (if using visual studio or xcode).