Skip to content

Embedding a cross platform web engine in a monogame app to achieve cross platform UI.

License

Notifications You must be signed in to change notification settings

2004seraph/MonogameWebGUI

Repository files navigation

Cross Platform UI in Monogame

An example project using Puppeteer Sharp to achieve cross platform UI in Monogame. This allows websites to render on top of the game, so you could in theory make your game's UI in HTML/CSS/JS or whichever framework you use (really anything that works on the web). This is what we are currently trying to achieve in Contraband Software's planned Rock Engine.

Currently it can render everything correctly, but many features are still missing (listed below).

A combine harvester mowing a wheat field

Originally I planned to use cefSharp, but the project is pretty much Windows-only, making it useless for cross platform development.

Missing Features

  • it currently is loading a file from a server, we need it to load locally, this is non-trivial due to security policies of chromium
  • no events are piped to the web-side of things
  • it is not continuously rendering (too slow)
  • it currently dynamically downloads chromium based on the platform, we need to bundle a chromium
  • It needs to be wrapped in a packaging class for integration with

About

Embedding a cross platform web engine in a monogame app to achieve cross platform UI.

Topics

Resources

License

Stars

Watchers

Forks

Languages