Skip to content

Thor

Compare
Choose a tag to compare
@walterhiggins walterhiggins released this 30 Dec 13:21
· 63 commits to master since this release

Added new modules

  • lightning

The entities module and lightning module are now documented.

To make lightning strikes when and where any arrow lands:

var lightning = require('lightning');
events.projectileHit( function( event ) {
  if ( entities.arrow( event.projectile ) ) {
    lightning( event.projectile );
  }
});