Fixed tile and scale sizes, Fixed Animation using RequestAnimationFrame

This commit is contained in:
logsol 2012-07-11 01:08:39 +02:00
parent 01043a2ea3
commit ff6456fd47
6 changed files with 137 additions and 116 deletions

View file

@ -0,0 +1,15 @@
define(['Chuck/Settings'], function(Settings) {
var requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function( callback ){
setTimeout(callback, Settings.BOX2D_TIME_STEP * 1000);
};
})();
return requestAnimFrame;
});