ASP.NET

Blazor GameDev – part 7: animations

Hi my fellow gamedevs! Welcome back to part 7 of our Blazor 2d Gamedev series. Today we’re going to step into the marvelous world of animations using spritesheets 🙂 Last time we saw how it’s possible to interact with the game using the mouse. It was fun and easy, but still, all we were rendering […]

Blazor GameDev – part 6: mouse input

Hi All! Welcome back to part 6 of our Blazor 2d Gamedev series. Today we’ll see how we can start detecting user interaction and mouse input. Last time we started the real refactoring towards a more reusable structure and introduced the concept of composition through the GameObject class. The goal for today’s exercise is to […]

Improving HTTP resilience in Blazor webassembly

Hi All! Today I decided to take a quick break from my Blazor gamedev series and talk about resilience. We’ll see how to call a REST API from a Blazor webassembly app using an HTTP Client and how to handle errors using Polly. As usual, I’ve pushed a sample repository on GitHub, feel free to […]

Blazor GameDev – part 4: moving a sprite

Hi All! Welcome back to part 4 of our Blazor 2d Gamedev series. Today we’re going to refactor the code of part 3 and start moving the sprite across the screen. The final result will be something like this: Example 3 and 4 will render exactly the same thing but in Example 4 we’ll start […]

Blazor GameDev – part 3: sprite rendering

Hi All! Welcome to part 3 of the Blazor 2d Gamedev series. Today we’re going to see how to render a sprite and handle the window resize event. Last time we saw how easy it is to initialize the HTML Canvas and render some text. Now we’re going to expand that code and add the […]

Scroll to top