Jump to content

self invoking functions in Phaser examples?


Recommended Posts

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


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...