Yes, you are right. I forget to change it in the index.js. However, after I correct this, the light does not follow the pointer, and there are no errors reported in the console.
Thanks, I will wait that in hope.
And I find some other āproblemsā in the example. I am not sure if they are real problems because I am new to javascript.
For the particles example. The example load a very old version of melonjs and it shows nothing on the screen, just like this.
And it also wonāt work if I change the melon.js to version 16.1.1, because the js files use āmeā and āgameā variables, which are not defined in version 16.1.1.
For the example, tiled Level loader, I get the following error in the console.
Hi, both the Light2d and Tiled Loader example have been updated and are working again with the latest version of melonJS (16.1.3).
note: this might takes a couple of hours to propagate in the CDN and be āvisibleā for other examples asking for the latest version available.
For the particle example, the thing is that the original author did not update it since a long time, and I did not find the time myself to do it as well. However, it does work with the āincludedā version of melonJS, and particles are working fine with the latest version of melonJS (see the platformer example when stomping on an enemy)
Would give me some suggestions about how to learn melon.js ? I find that all the functions of melon.js are packed by js classes, I have to inherit from some classes and overwrite some functions, but how do I konw which class and function I should overwrite. I even canāt find the entry point and figure out the workflow of a melonjs program.