Schemescape

Development log of a life-long coder

Porting a browser-based game to Steam (part 3)

In part 2, I decided to try using WebView2 to port my browser-based game to Steam (in order to avoid having to ship an entire Chrome/Electron runtime with my game).

The good news is that it is indeed possible to ship an HTML/CSS/JavaScript-based game on Steam using WebView2. The bad news is that I ended up having to write a lot of integration code. I'll probably never know how much time using Electron+Greenworks would have saved me, but I try not to dwell on sunk costs.

Finally, some (brief) answers

Below is a categorized overview of the questions I had to answer on my journey to a (hopefully!) final Steam build of my WebView2-based game, along with brief answers.

I'm planning to write more in-depth answers in the future. For now, if you're interested in more detail, send an email to any name at this domain.

Installation, environment

Integrating C++ and JavaScript

Steam integration

Miscellaneous