For those working on getting the game working at their own library, a few notes and a bug fix or two.
If you attempt to set up the game and run it from your own machine (as opposed to putting the files on the server), try it in Firefox rather than Internet Explorer. For some reason, IE will not load the XML from your local machine but will simply sit and spin its wheels. If you place the files on a server and access it there, IE should work fine.
As for Firefox, there have been a few reports of the Game crashing the whole browser! I have been able to test this to some degree and confirmed this ugly behavior. I believe it has to do with the sound implementation. I am still looking at possible fixes. To mitigate the problem, I have posted a new sound javascript file here. So place that file in the folder where you keep the current sounds.js folder.
In addition, you will need to add the following to the newgame.html file.
Cut and paste this:
<div id="sound"></div>
In place of this:
<script src="sounds.js"></script>
Cut and paste this function in place of the old psound function:
function psound(soundobj) {
if (sounds==1){
var thissound=document.getElementById(soundobj);
thissound.Play();
}
}
Finally, add the line:
<script type="text/javascript" src="sound.js"></script>
Right after the style section and before the current script section. It should look something like this:
</style><script type="text/javascript" src="sound.js"></script><script>...Configuration Section...etc.
Once that is in place, Firefox should run the game fine with the sounds off (which they are by default).
No comments:
Post a Comment