n3d-scene (0.0.1-alpha)
A plugin module which provides a 3D rendering context (for use with n3d-gamecore)
This code do anything on it's own, it's not supposed to !!
Please also read the documentation for n3d-gamecore here
API
- a plugin module must export an
object
which has either aclient
property, aserver
property OR both for example:
{ // do some client-side stuff.} { // do some stuff on the server.} moduleexports = client: PluginClient server: PluginServer options: {} /* none */ weight: 0 /* default */
-
options /* TODO: */
-
weight /* TODO: */
-
PluginClient should include an
init
method which will be automatically called when the game finishes initialising. -
Other events that a plugin can register listeners for (in it's own
init
method) areupdate
andrender
(others may be added in future as the API development progresses)