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
10
votes
0 answers

How do I add MonoGame project templates to MonoDevelop on MacOS?

According to the readme, I am supposed to Shutdown MonoDevelop Find your MonoDevelop AppBundle Right Click on it and select "Show package Contents" Press Alt and Drag and Drop the directory MonoDevelop.MonoGame.2.5 into…
Ani
  • 10,826
  • 3
  • 27
  • 46
9
votes
2 answers

The Command...Exited With Code -532462766

This is the line that gives me the error. It is from…
Jake
  • 337
  • 1
  • 3
  • 15
9
votes
1 answer

Procedurally generating a Texture2D in Xna/MonoGame

How could I procedurally generate a Texture2D using code? (ex: I want alternating pixels to be black and white on a 32x32 image)
user4901669
9
votes
4 answers

Debugging in monogame

How do you print or output text in Monogame? I googled how to display text in monogame and was led to this: Debug.WriteLine Which says: "By default, the output is written to an instance of DefaultTraceListener."(and that page just confused me…
James G.
  • 2,852
  • 3
  • 28
  • 52
9
votes
3 answers

C# How to completely remove object from memory

I have a C# application consisting of a Pivot with multiple Pivotitems. The normal Pivotitems unload properly and do not leak memory. On two of the items though, I have Drawingsurfaces on which I use Monogame to render 3d models. Upon the unloading…
Gerharddc
  • 3,921
  • 8
  • 45
  • 83
9
votes
3 answers

How to display AdMob ad at bottom of screen in Android app with Xamarin/Monogame?

I've been developing a game with MonoGame for a few months, and I just released it a few days ago. Now, I'm trying to get AdMob to work correctly so I can release a free lite version of the app. I'm a newbie to Android layouts, so I have no idea…
8
votes
1 answer

How can I watch for file changes in a UWP project?

I am porting my game to UWP from the full desktop .net and one thing I need to work out is how to live load texture, shaders etc... into the UWP version of the game. In the desktop version I use a FileSystemWatcher to do this but FileSystemWatcher…
Daniel Armstrong
  • 829
  • 9
  • 22
8
votes
2 answers

MonoGame vs Unity3D

This is my first question asked on StackOverflow. I want to ask the more experienced game developers which is better MonoGame or Unity3D. My intention is to learn one of these to enable me to create my own Android and possibly Windows games using…
8
votes
1 answer

How do i implement Awesomium 1.7.4.2 in a Monogame project?

I'm trying to render render a browser in side my monogame project, for drawing some interface & stuff. I've done this in the past with older versions of awesomium with no problems. But I can't figure out how to properly initialize awesomium in this…
BjarkeCK
  • 5,694
  • 5
  • 41
  • 59
8
votes
1 answer

How to restart XNA game class (Monogame)

I am using Monogame Implementation of xna to develop a simple Air Hockey game in windows store, and I am navigating to some XAML page if any of the players attains a score of 7 this is the Logic I am using in Update method protected override void…
A.K.
  • 3,321
  • 1
  • 15
  • 27
8
votes
3 answers

Could not load content1.png asset as non content file

When trying to import an image into my 'game' I get a error message. The one displayed in the title. it is called content1.png and is in the Content folder. I have public override void LoadContent() { base.LoadContent(); path =…
stepper
  • 1,147
  • 2
  • 14
  • 22
8
votes
2 answers

How do i set a fixed window size in monogame?

i'm making a simple game to show as final project. It will display a .bmp frame within the window and i have no intention of resizing the window while the game is running so i want to fix the window's size. The issue is that when i run the project…
Mario Gil
  • 493
  • 1
  • 5
  • 14
8
votes
1 answer

Running new MonoGame project with Xamarin Studio

I am trying to start a new project for mac using MonoGame. I have installed everything I believe is required but when I run the new project (mono game logo should pop up) I get these two lines in the output: Loaded assembly:…
8
votes
3 answers

How to draw a dashed line in MonoGame / XNA

What is the easiest way to draw a dashed line in MonoGame / XNA 4? Should I use 3d primitives or can I achieve it with a simple sprite?
adrin
  • 3,738
  • 8
  • 40
  • 60
7
votes
2 answers

Record instance in F# is null in C#

I'm working on an assignment for school in which we make a small game using monogame, with the added challenge of working in F#. The game logic is fully immutable F#, and the entrypoint is in C# by use of the Game class in monogame. I have however…
Dfctps
  • 115
  • 1
  • 8