Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AvaloniaInside/AvaloniaInside.MonoGame
Integration of MonoGame for Avalonia
https://github.com/AvaloniaInside/AvaloniaInside.MonoGame
Last synced: 3 months ago
JSON representation
Integration of MonoGame for Avalonia
- Host: GitHub
- URL: https://github.com/AvaloniaInside/AvaloniaInside.MonoGame
- Owner: AvaloniaInside
- License: mit
- Created: 2023-01-07T12:54:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T19:31:40.000Z (over 1 year ago)
- Last Synced: 2024-04-27T05:04:48.844Z (6 months ago)
- Language: C#
- Size: 17.3 MB
- Stars: 43
- Watchers: 6
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-avalonia - MonoGame - Integration of MonoGame for Avalonia. (Libraries & Extensions / Games and Game engines)
README
# AvaloniaInside.MonoGame
Integration of MonoGame for Avalonia
## Install
Install the package to your project using command below or open the [package nuget](https://www.nuget.org/packages/AvaloniaInside.MonoGame) to find other way to install.
```bash
dotnet add package AvaloniaInside.MonoGame
```## Usage
Add 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.
```xml```
```csharp
public Game CurrentGame { get; set; } = new MyExampleGame();
```![image](https://user-images.githubusercontent.com/956077/211166326-10a244a2-f265-4846-947a-6991133ce25a.png)
## Known issues
1. Mobile not working.
2. There is no implementation of device input, This is could be manage by native Avalonia.
3. Not a good performance for the moment.