1 decade ago by stuntmanmikey
Yo,
When saving a level on OSX the generated .js file has escape characters in it like this:
ig.module( \'game.levels.main\' )
.requires(\'impact.image\')
.defines(function(){
LevelMain=/JSON[/{\"entities\":[{\"type\":\"EntityPuck\",\"x\":360,\"y\":216},{\"type\":\"EntityPaddleCpu\" ...
When you try to load that in your browser, it fails. What I was able to do was do a search/replace in my editor, replacing \' with ' and then replacing \" with ". That fixes it, but I have to do that every time I save.
I'm on OSX 10.6.5 running Impact 1.14 (the latest as of right now). I've tried Safari, Chrome and FireFox and it's doing it in all of them.
-Mike
P.S. Awesome job
When saving a level on OSX the generated .js file has escape characters in it like this:
ig.module( \'game.levels.main\' )
.requires(\'impact.image\')
.defines(function(){
LevelMain=/JSON[/{\"entities\":[{\"type\":\"EntityPuck\",\"x\":360,\"y\":216},{\"type\":\"EntityPaddleCpu\" ...
When you try to load that in your browser, it fails. What I was able to do was do a search/replace in my editor, replacing \' with ' and then replacing \" with ". That fixes it, but I have to do that every time I save.
I'm on OSX 10.6.5 running Impact 1.14 (the latest as of right now). I've tried Safari, Chrome and FireFox and it's doing it in all of them.
-Mike
P.S. Awesome job