Integration of MonoGame for Avalonia
Install the package to your project using command below or open the package nuget to find other way to install.
dotnet add package AvaloniaInside.MonoGameAdd the namespace to your view
xmlns:monoGame="clr-namespace:AvaloniaInside.MonoGame;assembly=AvaloniaInside.MonoGame"
Add the game control. At the example below we use CurrentGame property to the game.
<monoGame:MonoGameControl Game="{Binding CurrentGame}" />public Game CurrentGame { get; set; } = new MyExampleGame();- Mobile not working.
- There is no implementation of device input, This is could be manage by native Avalonia.
- Not a good performance for the moment.
