You can play it here and view the source code here.
The whole thing is made with Pyxel a retro game engine for Python. Now with Web Assembly you can easily export Pyxel games to the browser!