In general you should be able to do it. Anything that can run in a browser can run with weweb.
How to do it depends on the specifics of the game. You are probably going to use a mix of weweb’s html element and js actions in workflows. The html element is not like getting the html directly from the server and may require some adjustments to the way you embed.
If you need more control you can always develop a custom component. I had fun last year with custom components and GLSL Shaders.