Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ebabel-theme-music with all npm packages installed. Try it out:

var ebabelThemeMusic = require("ebabel-theme-music")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ebabel-theme-music v1.0.1

Attach audio to the player 3D camera.

ebabel-theme-music

Build Status

Attach audio to the player 3D camera.

Module install and usage in your game

Install

npm install --save ebabel-theme-music

Usage

const { themeMusic } = require('ebabel-theme-music');

const result = themeMusic({
  THREE,
  camera,
  volume: 1,
  url: 'assets/music/ambient2-nautilus.mp3',
  name: 'camera-listener',
});

Development of this module

Fork this repository on Github, git clone your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.

  • fork this repository on github.com
  • git clone your forked repository.
  • git checkout develop

First step when developing

npm install

Run linting and unit tests

npm test

An html coverage report is to be found in the coverage folder.

Generate documentation

npm run jsdoc

The generated documentation is to be found in the docs folder.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free