Lucy App
Part of lucidity project.
Simple runtime for Lucidity applications
lucy.app helps loading scenes and runs the animate loop.
Usage example (without live coding):
// Singletonconst app = require ( 'lucy-app' )const main = require ( './scene/index' ) main.setup () app.run ( main )
Usage example (live coding):
// Singletonconst app = require ( 'lucy-app' )const live = require ( 'lucy-live' )live.require( './scene/index', function ( s ) { s.setup () app.run ( s ) })
Usage example (live coding, scene composition):
// Singletonconst app = require ( 'lucy-app' )const comp = require ( 'lucy-compose' ).load const fx = comp.load ( './fx' )const scene = comp.load ( './scene' ) // setup and live reload is managed by composerfx( 'blur', scene ( 'triangle' )).ready.then( function (s) { app.run (s) })
Installation
npm install lucy-app --save
Tests
npm test
Contributing
Please use 'jessy style'.
Add unit tests for any new or changed functionality.
Release History
- 0.2.0 (2015-09-22) Using dirsum to check for changes in work directory.
- 0.1.0 (2015-09-02) Initial release.