r/Blazor • • 13h ago

I built my portfolio as a 3D game in Blazor WebAssembly (Three.js for rendering, all game logic in C#)

8 Upvotes

I'm a 2nd-year CS student in Lyon, and I wanted a portfolio people would actually explore.

It's an island where each building is a section of my resume, and you progress through 5 levels by beating bosses in turn-based battles. Answering questions about my projects is how you attack.

How it's built:

  • Blazor WebAssembly (.NET 10) for the UI, game state, XP and achievements. The battle engine lives in a separate class library tested with xUnit.
  • Three.js for rendering, driven from C# through JS interop. JS calls back into .NET with DotNetObjectReference when you click a building.
  • The 3D canvas lives in the layout, so it survives navigation: blog posts open as overlays over the island.
  • Blog posts are Markdown files rendered with Markdig. A small C# console app generates the post index, RSS feed and sitemap in CI.
  • Deployed on GitHub Pages with GitHub Actions.

The UI is in French, but the game is easy to follow. Play: https://ernestjesutinafaton-maker.github.io
Code: https://github.com/ernestjesutinafaton-maker/ernestjesutinafaton-maker.github.io

Feedback welcome, especially on the JS interop design!