0.0.2-alpha • Published 10 years ago
n3d-scene v0.0.2-alpha
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:
PluginClient = function() {
// do some client-side stuff.
}
PluginServer = function() {
// do some stuff on the server.
}
module.exports = {
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)
0.0.2-alpha
10 years ago
0.0.1-alpha
11 years ago