Gamedev

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

Blazor GameDev – part 5: composition

Hi All! Welcome back to part 5 of our Blazor 2d Gamedev series. Today we’ll see how we can move away from procedural code using composition. Last time we saw how easy it is to load a sprite and move it across the screen. The issue with this solution is that things will get awkward […]

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