Skip to content

Instantly share code, notes, and snippets.

@ZachMassia
Created November 7, 2012 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZachMassia/4035388 to your computer and use it in GitHub Desktop.
Save ZachMassia/4035388 to your computer and use it in GitHub Desktop.
melonJS error
Browser error:
Uncaught TypeError: object is not a function melonJS-0.9.5.js:411
Object.extend melonJS-0.9.5.js:411
obj.newInstanceOf melonJS-0.9.5.js:4960
api.addEntity melonJS-0.9.5.js:1326
api.loadTMXLevel melonJS-0.9.5.js:1273
obj.loadLevel melonJS-0.9.5.js:11212
me.ScreenObject.extend.onResetEvent main.js:64
me.ScreenObject.Object.extend.reset melonJS-0.9.5.js:1801
_switchState melonJS-0.9.5.js:2084
(anonymous function) melonJS-0.9.5.js:529
main.js:64 :
PlayScreen = me.ScreenObject.extend({
onResetEvent: function() {
return me.levelDirector.loadLevel("area01"); // <--------- 64
},
onDestroyEvent: function() {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment