1 decade ago by mandarin
Hello!
A little while ago I held a 4 day game developer course using ImpactJS, and created a little platform game which the students could use to modify. I have recently uploaded it to my website for all to see and modify/fork for themselves. In the process of cleaning up the code I noticed that when playing the game in Safari 5.1.5 on OS X 10.6.8, I get an error in the console after I have killed the boss.
This is the error:
INVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. Occurs at sound.js:98
INDEX_SIZE_ERR: DOM Exception 1: Index or size was negative, or greater than the allowed value. Occurs at image.js:165
The same game works fine in Google Chrome. Where's the problem? Safari or my code?
Preloading on Safari does also take a small eternity. It's stuck for 10-15 seconds before moving on. Does anyone else get the same behaviour?
You can read about the development course and play the game here: http://mandarin.no/games/noroff/
--
Thomas
A little while ago I held a 4 day game developer course using ImpactJS, and created a little platform game which the students could use to modify. I have recently uploaded it to my website for all to see and modify/fork for themselves. In the process of cleaning up the code I noticed that when playing the game in Safari 5.1.5 on OS X 10.6.8, I get an error in the console after I have killed the boss.
This is the error:
INVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. Occurs at sound.js:98
INDEX_SIZE_ERR: DOM Exception 1: Index or size was negative, or greater than the allowed value. Occurs at image.js:165
The same game works fine in Google Chrome. Where's the problem? Safari or my code?
Preloading on Safari does also take a small eternity. It's stuck for 10-15 seconds before moving on. Does anyone else get the same behaviour?
You can read about the development course and play the game here: http://mandarin.no/games/noroff/
--
Thomas