EliteAsian123 / noa-plus-plugins

Noa Engine... With Plugins!
MIT License
2 stars 1 forks source link
noa noa-engine

noa-plus-plugins

I have stopped updating this project. Some of these plugins may not work.

This is a library that adds plugin support to Noa Engine. noa-plus-plugins is in beta so there isn't much yet. The test-game is based off of the Hello World Example. If you are using this, it is required that you have prior knowledge of Noa.

Usage - Using Plugins

Clone this repository and move the all-plugins folder into your project (Make sure you have Noa Engine installed in that same project!) then in the index.html file, add these lines of code above bundle.js:

<script type="text/javascript" src="https://github.com/EliteAsian123/noa-plus-plugins/raw/master/all-plugins/noa-plus-plugins-base.js"></script>
<script type="text/javascript" src="https://github.com/EliteAsian123/noa-plus-plugins/raw/master/all-plugins/example-plugin.js"></script>

Yep! No npm! This is done to make it easier to develop plugins for noa-plus-plugins, because you don't have to compile it everytime! To setup noa-plus-plugins, go into you index.js (that'll compile into your bundle.js) and add:

// Init noa-plus-plugins
var nppb = new NoaPlusPlugins(noa, BABYLON);

// Add the ExamplePlugin and make it say "Hello World" (You can delete this)
var examplePlugin = new ExamplePlugin(nppb, "Hello World!");
nppb.addPlugin(examplePlugin);

// Add any other plugins here

Note that BABYLON is the legacy BABYLON variable, and can be gotten like this:

import * as BABYLON from '@babylonjs/core/Legacy/legacy'

More info is available in the Wiki Tab!

Usage - Making Plugins

Info will available in the Wiki Tab!

Thanks

MASSIVE thanks to Andy Hall for making this amazing engine in the first place! Also thanks to Levlups for helping me with some code!

License

MIT