hextris/js/entities.js

12 lines
399 B
JavaScript
Raw Normal View History

2014-05-22 20:36:32 +00:00
var angularVelocityConst = 4;
2014-05-19 19:49:05 +00:00
// t: current time, b: begInnIng value, c: change In value, d: duration
function easeOutCubic(t, b, c, d) {
2014-05-26 01:49:03 +00:00
return c*((t=t/d-1)*t*t + 1) + b;
}
2014-05-19 17:25:20 +00:00
var colorSounds = {"#e74c3c": new Audio("../sounds/lowest.ogg"),
2014-05-26 01:49:03 +00:00
"#f1c40f":new Audio("../sounds/highest.ogg"),
"#3498db":new Audio("../sounds/middle.ogg"),
"#2ecc71":new Audio("../sounds/highest.ogg") //fix this later
2014-05-26 03:55:20 +00:00
};