Tagged:             		Gamedev              		           		wasm              		           		csharp              		           		zinc &nbs

So You Want To Compile Your C# Game Engine To The Web With WASM

submited by
Style Pass
2024-12-29 17:30:07

Tagged: Gamedev   wasm   csharp   zinc  

When I set out to make Zinc I had a few goals in mind. A large portion of those goals were around engine ergonomics and “ making happy developers,” but one very specific technical goal was “ make it work on the web”.

I didn’t know how to do this. I didn’t even really know how to approach the problem at the time, or even really understand how web builds would (or even “ do” for engines that support it) work.

I understand how most JavaScript game frameworks work — they wrap WebGL and draw to a canvas element. But for something that was authored in a non-JS context (C/C# in my case), the avenue to “ working on the web” seemed muddy at best. But as the saying goes, anything worth doing is going to be difficult.

Before I really get into it, I wanted to take a small moment to address “ why”. Why should a primarily desktop-targeted game engine work on the web? Especially when there are lots of good frameworks for making games on the web?

Leave a Comment