My first attempt to use the map function to switch the mouse movement range to the color range, which is very interesting!
I found the libraries of p5.js are really great! You only need to cite the contributions of others but save a lot of work. In this small game, I import the library p5.collide2D (by: Ben Moren), and used the main concepts I learned this summer like variables, classes, loops, arrays, and functions (it requires you a lot of learning of the "Reference" of p5.js). The keys to the logic of this game are to constantly add new fire and ghost to the arrays, and call the function hits when the girl collides with obstacles.