MonoGame.Invisible
2.0.1
dotnet add package MonoGame.Invisible --version 2.0.1
NuGet\Install-Package MonoGame.Invisible -Version 2.0.1
<PackageReference Include="MonoGame.Invisible" Version="2.0.1" />
<PackageVersion Include="MonoGame.Invisible" Version="2.0.1" />
<PackageReference Include="MonoGame.Invisible" />
paket add MonoGame.Invisible --version 2.0.1
#r "nuget: MonoGame.Invisible, 2.0.1"
#addin nuget:?package=MonoGame.Invisible&version=2.0.1
#tool nuget:?package=MonoGame.Invisible&version=2.0.1
Welcome to MonoGame.Invisible!
MonoGame.Invisible makes your MonoGame window fully transparent!
Look for yourself:
https://github.com/user-attachments/assets/0cd45914-a175-4d84-8b2e-ff4d6d358aab
Now you can create one of those hyped "Desktop-Games" with the MonoGame.Framework... if you know what I mean 😃
How To Use It?
Creating an invisible MonoGame window with this library is as easy as:
protected override void Initialize()
{
TransparentWindowManager.Setup(this, graphics);
_windowManager = TransparentWindowManager.Create(this, TransparencyMode.ColorKey, new Color(1, 1, 1));
_windowManager.Initialize();
base.Initialize();
}
protected override void Draw(GameTime gameTime)
{
_windowManager.BeginDraw();
spriteBatch.Begin();
// Your Drawings here!
spriteBatch.End();
_windowManager.EndDraw(gameTime);
}
[!NOTE] Only works with a MonoGame.Framework.WindowsDX project! A MonoGame.Framework.DesktopGL project doesn't work - even if compiled for windows!
[!TIP] Check out the integrated sample project, which shows the invisible MonoGame window in action. It's much smoother than in the video. You need to see it for yourself!
Now Have Fun with MonoGame.Invisible!
[!IMPORTANT] PS: If you create such a Desktop-Game with MonoGame.Invisible, then please let me know. This is not neccessary, but I would be happy to add a link to your game here on this site! 😃
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. |
-
net8.0-windows7.0
- MonoGame.Framework.WindowsDX (>= 3.8.2.1105)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.