Jump to content

Module system for phaser


EmeraldZone
 Share

Recommended Posts

Hey. I am fairly new to phaser and javascript game dev in general. I have been hacking away with phaser for a few weeks. Haven't made anything major. I am currently working on a prototype and my play state is just blowing out of proportion. I was wondering if there is a module system like Requirejs or Browserify that works well with phaser. Just so I can separate out entities from the state.

Link to comment
Share on other sites

If you do not want/neet to concatenate the entire code base into a single js file, you can use my solution, executejs:

 

https://github.com/Gnumaru/executejs

 

It is not an asynchronous module loader like requirejs or a build tool like browserify, it is a simple facility to execute one js file from within other js file, like you would do with require and require_once in php or the several include/import/using statements from other languages like C, java and C#

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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