Skip to content

Instantly share code, notes, and snippets.

View edwerner's full-sized avatar

Ed Werner edwerner

  • Rochester Institute of Technology
  • Rochester, NY
View GitHub Profile
// create new wolves soundmanager instance
var soundManager = new WolvesSoundManager();
// add new sound passing params object
soundManager.addSound({
'id': 'audio_01',
'class': 'demo-audio',
'alias': 'WOLVES_DEMO_AUDIO'
});
<!DOCTYPE HTML>
<html>
<head>
<title>wolves.js quickstart guide</title>
<!-- link wolves.js javascript -->
<script src="wolves-1.0.min.js"></script>
</head>
<body>
<!-- audio courtesy of http://www.noiseaddicts.com/ -->
<audio id="audio_01" class="demo-audio" name="WOLVES_DEMO_AUDIO" preload="auto" autobuffer="autobuffer">
@edwerner
edwerner / audio.js
Last active December 14, 2015 03:39
// docs application object
var DocsApplication = function () {
this.buttonEls = undefined;
this.audioArray = [];
this.audioManager = undefined;
this.mediaModel = undefined;
// initialize docs application
this.initialize = function () {
@edwerner
edwerner / Vector2.js
Last active March 26, 2019 16:34
Base Vector2 JavaScript math helper class serves methods to perform operations on object values within Cartesian coordinate systems.
var Vector2 = function () {
this._x = 0;
this._y = 0;
this.DEGRAD = 0;
};
Vector2.prototype.initialize = function (x, y) {
_x = x;
_y = y;
};