how did you ported python game to html?
I used an engine called Pyxel which makes that quite easy - you just call pyxel package and then pyxel app2html commands in the terminal. If you used something else then check their documentation, not every engine will allow that.
I used pygame :( Anyways thanks for response