i wrote the function of the game
For detailed instructions on how to get started, check out this guide.
Just download the files and load the index.html file in your browser
In this game you have a Player and Enemies (Bugs). The goal of the player is to reach the water, without colliding into any one of the enemies. The player can move left, right, up and down. The enemies move in varying speeds on the paved block portion of the scene. Once a the player collides with an enemy, the game is reset and the player moves back to the start square. Once the player reaches the water the game is won and alert window will appear.