So in theory you can port any C/C++ program to the browser.
I don't get what is the idea to run a game in browser. I never play browser games.