0.2.0 • Published 10 years ago

lucy-app v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Lucy App Build Status

Part of lucidity project.

Simple runtime for Lucidity applications

lucy.app helps loading scenes and runs the animate loop.

Usage example (without live coding):

// Singleton
const app  = require ( 'lucy-app' )
const main = require ( './scene/index' )

main.setup ()

app.run ( main )

Usage example (live coding):

// Singleton
const 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):

// Singleton
const 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 composer
fx
( '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.