n3d-scene

0.0.2-alpha • Public • Published

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 a client property, a server 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) are update and render (others may be added in future as the API development progresses)

Readme

Keywords

Package Sidebar

Install

npm i n3d-scene

Weekly Downloads

0

Version

0.0.2-alpha

License

MIT

Last publish

Collaborators

  • joates