Fixed Firefox audio issue with the Loader and added defined functions for anonymous callbacks

This commit is contained in:
Richard Davey
2013-08-05 03:43:20 +01:00
parent 84ef32e62a
commit d1da4cbdef
15 changed files with 314 additions and 200 deletions
+5 -1
View File
@@ -18,7 +18,11 @@ module Phaser {
GameMath.sinA = [];
GameMath.cosA = [];
for (var i = 0; i < 360; i++)
// Android 4 stock browser bug fix
GameMath.sinA.push(0);
GameMath.cosA.push(0);
for (var i = 1; i < 360; i++)
{
GameMath.sinA.push(Math.sin(this.degreesToRadians(i)));
GameMath.cosA.push(Math.cos(this.degreesToRadians(i)));