Questions tagged [monogame]

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, Windows 10, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

Recent versions of MonoGame includes a bundled content pipeline. This eliminates the need to use the XNA 4 Content Pipeline, which is not available for all platforms. The new MonoGame pipeline allows for management of assets completely independent of XNA.

Information:

Code:

Questions or Problems:

1862 questions
3
votes
2 answers

how to ensure only sprites visible in the viewport are ever drawn

I am attempting to create a 2d scrolling XNA game as a learning exercise, but have run into some issues with the scrolling background. I am loading a level from a text file, parsing through to create the appropriate tiles and store them in a matrix…
Pectus Excavatum
  • 3,593
  • 16
  • 47
  • 68
3
votes
3 answers

Monogame tutorials /walkthroughs for normal Windows 7 development (not Windows 8, Android or iOS)

Can somebody point me to some good Monogame walkthroughs or tutorials? The reason I am asking this question is because when I try to create a new project in VS2012, I get the following options But all the tutorials or walkthroughs (like this one)…
Joe Slater
  • 2,483
  • 6
  • 32
  • 49
3
votes
2 answers

Monogame Content pipeline don't work

I can't understand how to set up monogame content project.. PLease, help me :) I tried to read this stuff: https://github.com/mono/MonoGame/wiki/MonoGame-Content-Processing But can't make this works... What I'm do: Create MonoGame project. Add new…
dmitryhryppa
  • 119
  • 3
  • 11
3
votes
2 answers

True or False: one should have Windows PC to program MonoGame games

I'd made inner logic of card game and successfully made console version using pure Mono. Now I started iOS version of game. I tried to use JPG textures, but with no luck (popular "Could not load asset!" error). It should in XNB…
Maxim Korobov
  • 2,574
  • 1
  • 26
  • 44
3
votes
1 answer

How to make a screenshot in MonoGame for Windows?

So I've been trying to create image files from the current game window (a screenshot essentially) but what I've tried so far just isn't working. The methods RenderTarget2D.SaveAsPng() and RenderTarget2D.SaveAsJpeg() aren't implemented yet by the…
Lance K.
  • 53
  • 7
3
votes
1 answer

Borderless Window monogame

I'm trying to port a XNA game to MonoGame. I only want to target Windows platform. I want to display the game in a borderless window. I do that, this way, in my XNA game: private void SetForm() { Form myForm =…
fralurbe
  • 31
  • 1
  • 2
3
votes
2 answers

Error: GenerateWinPRTManifest

I've tried to create a new monogame windows phone 8 project, when I tried to run it I got this error: Error 1 The "GenerateWinPRTManifest" task failed unexpectedly. System.ArgumentException: An item with the same key has already been added. at…
Mostafa El-Abady
  • 618
  • 9
  • 25
3
votes
1 answer

Prevent highlighting/selection through keyboard XAML?

I am working on a MonoGame based game which utilizes XAML as the interface. I am however having an issue making sure that the space key does not trigger the XAML interface (it is used for something else in the game). Right now I have a gridview…
Serguei Fedorov
  • 7,763
  • 9
  • 63
  • 94
3
votes
1 answer

Windows 8 Live Tile - Remove text and small icon?

We are using TileWideImage and TileSquareImage and appropriate XML (as described here) to setup our custom tiles in our Windows 8 game as you finish different levels in the game. The way our tiles are designed, we don't want any text or icons to…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
3
votes
1 answer

MonoGame Windows 8 - WriteableBitmap

If you place the following code in the game loop (Update or Draw) of a MonoGame app (can just be the default project template): new Windows.UI.Xaml.Media.Imaging.WriteableBitmap(150, 150); It throws a cross-thread error... The application called an…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
3
votes
4 answers

How to use an .xnb file in MonoGame on Windows 8?

I've got an .xnb file from a Windows Phone project made on Windows 7. I'd like to use the same asset in a Windows 8 Metro app. I've got MSVS 2012 RC on Windows 8 with a project from the MonoGameWindowsMetroApplication template. I put the .xnb…
Curyous
  • 8,716
  • 15
  • 58
  • 83
2
votes
2 answers

Problem with RenderTarget and Transformation Matrix in MonoGame

I've been trying to reach a good solution on different resolutions, but none have been working very well, either the sprites get distorted, everythings gets offset, or a variety of different shenanigans. The best solution I got was this, where it…
ExitThe
  • 23
  • 2
2
votes
2 answers

C#: How to initialize a record that has a List?

got a question that I hope is easy to answer! I'm self teaching myself C# right now - I do know JavaScript and PHP so far. One thing I've been struggling with is how to deal with List<>, Dictionary<> etc, with regard to actually initiating these…
sylargaf
  • 346
  • 1
  • 6
  • 19
2
votes
1 answer

Monogame Content not building from VS

I was working on a game on my laptop which I now copied to my desktop (on which I installed Monogame 3.7.1). I can run the build from my laptop on my desktop, but when building it on my desktop (from Visual Studio 2019) it gives the error…
2
votes
2 answers

How to draw on the fly 2D pixel-by-pixel in MonoGame/XNA?

I was wondering how to draw on the fly pixel by pixel in XNA/MonoGame and could only find this. Problem is, the question wasn't centered about how to actually draw pixel by pixel but rather manage resources and updating stuff. Because I couldn't…
atrefeu
  • 178
  • 11