Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lucy-forge

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucy-forge

Entity and component definition tool

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Lucy forge Build Status

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' )

// Define a component
// for auto-loading, the path for this component should be 'Name.js'
const Name = forge.Component
( 'Name'
, { init ()  // This method is 'NOT' added to the entity when used but
             // it is called on entity creation. `this` is the entity
             // being created.
    { this._name = 'No name'
    }
  , name ( name )
    { this._name = name
      return this
    }
  }
)

// Use the component
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.

Keywords

FAQs

Package last updated on 04 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc