How to render a dynamic Component with Blazor

Hi All! Today we’re going to see a simple technique to render a dynamic Component with Blazor. Suppose you want to create a generic Component to handle lists. Something very easy like this: @typeparam TItem <ul> @foreach(var item in Items){ <li>....</li> } </ul> @code{ [Parameter] public IEnumerable<TItem> Items {get;set;} }...

2 minute read

Blazor Gamedev – part 11: improved assets loading

Hi All! Welcome back to part 11 of our Blazor 2d Gamedev series. Today we’re going to refactor and improve the code responsible for loading assets. Last time we talked about Scene Graphs and how they can help us managing our Game Entities. We used the classic solar system example,...

4 minute read

Blazor GameDev – part 10: the Scene Graph

Hi All! Here we go with part 10 of our Blazor 2d GameDev series. Today we’re going to talk about an extremely important tool that can greatly improve game entities management: the Scene Graph. This is an example, just to give you an idea of what is going to be...

3 minute read

Blazor GameDev – part 9: introducing the Finite State Machine

Hi everyone! Welcome back to part 8 of our Blazor 2d Gamedev series. Today we’ll keep refactoring our last example, cleaning up the code using a Finite State Machine. As usual, you can check out the results in your browser before moving on. Use left/right arrows to move the player...

4 minute read