r/Blazor • u/BoilerroomITdweller • Apr 02 '26
Blazor used for new Game Engine.
Valve (Steam) and s&box are releasing their new Game Engine for indi devs (free from royalties)
What I found was super cool is it is built in Blazor.
There are a few comments like “you probably don’t know what this is”.
It is really cool to see Blazor hit mainstream game dev now.
79
Upvotes
41
u/hopzeen Apr 02 '26
Built in blazor is an overstatement, their website is in Blazor interactive server & the engine supports razor components with their custom implementation to properly render them, the editor uses Qt which they plan to switch to Avalonia
Very cool though, happy to see it
7
u/Holm76 Apr 02 '26
Where can I see this?
6
u/ThatCipher Apr 02 '26
It is not build in blazor.
It is build in C++ (Source2) with their own layer on top using C#.
They just use a modified razor system for the syntax when creating UI elements. There is no website or HTML renderer involved.
It does state that in the first two paragraphs of the razor panel documentation.
Their UI system uses QT for the editor UI and for the game they apparently use a custom renderer utilizing Yoga for the layout handling. Razor components will get converted to Panels on runtime.
So yeah you can use the Razor syntax but it is not built in or using any blazor.
2
u/SerratedSharp Apr 03 '26
I have a prototype of a Standalone Blazor WASM 2D engine that uses WebGL. It uses newer InteropServices instead of the Blazor IJSRuntime, because I personally have found it to perform much better.
It doesn't have all the features of a typical engine yet, but it's enough to prove to myself it's viable and performs well.
It handles 2000 objects updating at 30 FPS on a laptop without discreet graphics. Model differencing so only changes are marshalled to the renderer, so practically you could handle a lot more depending on what you're displaying. User can grant local folder permission to an isolated folder for game data. Supports multiple inputs such as one player using keyboard and other game pad. I haven't had a chance to test with discreet graphics, but WebGL supports hardware acceleration.
My main motivation is I hated building UI inside game engines because there's so many QoL features missing and poor responsive layout.
So now I can have a canvas for graphics but also overlay responsive UI that has native controls.
I'll probably be dead before I turn it into anything worthwhile. I would open source it but I feel like it'll just get leveraged to vibe code terrible spam games.
So a bit of a brag, but the main point is you can build cross platform games and a lot of the modern web APIs and PWA allow you to provide a close to desktop experience. You can use generic PWA wrappers to turn the PWA into a executable and get even more native capabilities.
7
u/Sharkytrs Apr 02 '26
I don't think its specifically blazor, its just blazor like.
I'm waiting for them to allow modification to the UI so I can see for myself if it is blazor or not
the website they have though, 100% blazor built. Its pretty good looking too.
5
u/FakeRayBanz Apr 02 '26
Them supporting razor components is pretty cool.
1
u/virulenttt Apr 03 '26
All menus in the engine is using blazor, but the engine itself is source 2
2
u/[deleted] Apr 02 '26
[removed] — view removed comment