Lucy forge
Part of lucidity project.
Beta software. Until 1.0, API subject to change.
Entity and component definition tool
lucy.forge is a minimal 'game' or 'feature composition' engine. It's goal is to
foster clean and reusable Javascript code through the extensive use of mixins
and conventions.
Installation
Currently only works with io.js.
npm install lucy-forge --save
Usage example:
const forge = require ( 'lucy-forge' )
const Name = forge.Component
( 'Name'
, { init ()
{ this._name = 'No name'
}
, name ( name )
{ this._name = name
return this
}
}
)
let player1 = forge.Entity
( 'Name'
, 'Score'
, { name: 'John Difool'
, score: 100
}
)
Tests
make
Contributing
Please use 'jessy style'.
Add unit tests for any new or changed functionality.
Release History
- 0.3.0 (2015-09-04) API change for forge.Component with class methods.
- 0.2.0 (2015-09-03) Adding possibility to replace binding.
- 0.1.0 (2015-09-02) Initial release.