Thanks man !
Ps- this was the second game I've ever made in js, the first one being pong. So I don't expect much of it. I think of it as a stepping stone towards building a platformer with most of the same mechanic. The initial plan was to implement a shooting system for both the enemy and the players but that turned out to be too hard. So I basically settled for a third rate game.