Upgrading to melonJS 2 - How To

melonJS 2 is a modern version of the melonJS game engine and has been rebuilt almost entirely using ES6 class, inheritance and semantic. Moving straight away from the legacy version (using ES5 and Jay Inheritance) will definitely break your game and the below guide aims to provide step by step instructions on how to experience a smooth transition to melonJS 2.

Note: For the sake of clarity, here below is the corresponding version(s) for both the legacy version of melonJS and melonJS 2 :

  • melonJS “legacy” : version 9.x and below
  • melonJS 2 : version 10.0 and higher

Please visit our wiki to access the How To :

Feel free to comment here below if you encounter any issue or if something is missing,

thanks !