Paul-Andre Posted October 4, 2013 Share Posted October 4, 2013 Hello. I have noticed that many examples of Phaser have their code wrapped in a "self invoking function" ( (function(){/*code*/})() ) which encloses the variables in a function scope. I'm not sure how people feel about this, but if you remove the wrapper, it would be possible to hack around with the examples from the javascript console, which is much more fun than having to change the code and refresh the page. (especially that there is currently little documentation, and the javascript consoles have code completion). Just a proposition... Link to comment Share on other sites More sharing options...
rich Posted October 4, 2013 Share Posted October 4, 2013 Yeah that's true, I guess I did it as force of habit (not polluting the global scope) but for the sake of examples it's actually really useful to do that. Link to comment Share on other sites More sharing options...
Alvin Posted October 7, 2013 Share Posted October 7, 2013 We just updated the examples, you will soon be able to mess around with the console RestingCoder 1 Link to comment Share on other sites More sharing options...
Recommended Posts