ASP.NET

Blazor GameDev – part 8: keyboard input

Hi everyone! Welcome back to part 8 of our Blazor 2d Gamedev series. Today we’re going to refactor our last example, detecting keyboard input to control character animations. Last time we saw how to load spritesheets and introduced the AnimatedSpriteRenderComponent component. Let’s now see how we can use the keyboard to switch between animations. The […]

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 […]

Scroll to top