Firstly i apologize if this has been brought up before, I seem to have a problem with editing the index file specifically the source file part here
<!-- Run the game code -->
<script type="text/javascript" src="html5game/parapals.js?INRAC=1789759812"></script>
</body>
</html>
Now whenever i edit the part highlighted to something other then html5game (and obviously the name of the file it points to) the game wont load in any browser i just get a black canvas! Any ideas?
Also for some strange reason if i have webgl enabled once i compile the game and run it in chrome all i get is the same black canvas (This was run locally). However the one i uploaded to my web server had webgl enabled and runs perfecly fine.
For the first bit, you need to be sure to store the game resources and such in the correct locally referenced directory. For instance, if the index file is located in /games/, and you stored the game files in /games/source/game1/, then you need to change html5game/ to source/game1/. It's just a matter of following the rules when you reference resources.
For the second part about the WebGL... I think in Chrome, there is some flag of some sort that limits locally run files and doesn't allow them to use certain features. With a little Googling I found
this, which seems to point at a security restriction due to cross-domain referencing of some sort. If you have Dropbox, there's a good way around this. Export your game into the "Public" folder and copy the public link, and then paste it into your browser.
This game works great, from my experience! Give it a shot!
Ganbatte,
epic_Creations
Edited by epicCreations, 02 February 2012 - 02:21 AM.