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
1 answer

2D Monogame: Rectangle collision detection, side specific

I have two rectangles, one player, one map. The player needs to not be able to walk through the map. Both the player and map have a rectangle with position and texture width and height, both also have a Vector position. Rectangle.Intersect() only…
T. Croll
  • 35
  • 1
  • 1
  • 4
3
votes
1 answer

A* Algorithm 2D Game Pathing issues

I have decided to pick up my old 2D game engine from back in the day and continue work on it This is my first attempt at trying to implement some basic AI for enemies and I am having some issues. Here is a run down on how I am treating the AI for…
David Sleep
  • 251
  • 2
  • 12
3
votes
1 answer

Stretching a Sprite

First post, first year programmer so go easy please. When drawing a sprite in monogame, does anybody know how to make it stretch into the full screen? For example I have my start screen appear but it doesnt stretch into the full screen (cause i have…
Brandon M
  • 31
  • 3
3
votes
1 answer

Using a BMP image as font in Monogame

Is there a way to load a custom font using a BMP image.. I have seen a solution online by Microsoft providing this, but i keep on getting content-load exception when trying to run this solution. It seems like this used to work with XNA but might…
Stacknerd
  • 439
  • 2
  • 8
  • 21
3
votes
1 answer

Can't Get WP 8.1 AdControl to Engage on User Click

I have a universal app project for Windows/WP 8.1, and I am attempting to get the Ads to work on both platforms. In the OnApplyTemplate function of my control, I have an #ifdef to dynamically create the AdControl for either Windows or WP. The code…
Nick Banks
  • 4,298
  • 5
  • 39
  • 65
3
votes
1 answer

Monogame: making SOME pixels of a RenderTarget semi-transparent

this is a very difficult problem to describe (I'm using MonoGame, Windows 8). I want to be able to render a semi-transparent 'sprite' image, such as a .png, not onto the screen but onto a clear image, do this several times to in effect create a new…
Laurence
  • 51
  • 2
3
votes
2 answers

How to convert 8bit sound to 16bit

I'm using DynamicSoundEffectInstance to stream in raw PCM data. This data is 16bit and signed. My code works fine, not a single problem. The issue is compressing this raw PCM yields poor results: 13.9mb down to 13.7mb. If I encode the PCM data as…
Alex Guerin
  • 2,336
  • 10
  • 36
  • 53
3
votes
1 answer

How do I implement Dispose() in my class correctly?

I'm looking for advice on how and when to implement the dispose pattern. I've read the MSDN article on how to implement the Dispose() pattern. It makes sense. I implemented it in my class, but it doesn't seem to make a difference on memory usage. …
EtanSivad
  • 487
  • 8
  • 16
3
votes
1 answer

Get android screen resolution

I need the code to get android screen resolution in API 10+ I am using monogame android using Android.App; _ScreenWidth = Resources.DisplayMetrics.WidthPixels; This code only works in Actvity1.cs and not in Game1.cs , why is that ? I am using…
dimitris93
  • 4,155
  • 11
  • 50
  • 86
3
votes
4 answers

Ordering objects in Monogame

I have quite a simple question about developing games in Monogame. Let's say I have a UFO as an object that can move around. From time to time, my UFO spawns a hole in the ground (purple circle) directly under the spot where he is standing. After…
M. Boeckx
  • 252
  • 1
  • 5
  • 18
3
votes
3 answers

XNA Monogame Load Simple FBX Model

I am trying to load an fbx (cube.fbx) Model using Monogame on Visual Studio Express 2013. I've been looking around and from what I can tell this should be such so simple. However, I cannot find a solution to my problem. My environment is Visual…
misterfitzy
  • 77
  • 1
  • 9
3
votes
4 answers

Monogame and .fx files?

I'm currently following this tutorial but using MonoGame : http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series1/Terrain_from_file.php As said in the tutorial, my main goal is to render a terrain from an image file. There is a .fx provided with…
Depado
  • 4,811
  • 3
  • 41
  • 63
3
votes
1 answer

How to create an Input Textbox for a monogame metro app

based on this thread: Adding inputbox-like control to XNA game Not sure if this is a ressurect but i need an input text box for my monogame Project, however im running the metro app version, any clue on how to get around that? i've been trying…
Ogre3dUser
  • 79
  • 1
  • 3
  • 10
3
votes
1 answer

xna 4 render target with alpha chanel

I would like to do a simple thing : render a 2d texture to a 2d render target with alpha chanel blending. So i create my render targer : renderTarget = new RenderTarget2D(m_graphicsDevice, 200, 200); then I create my texture : texture = new…
fbf
  • 711
  • 5
  • 5
3
votes
1 answer

Monogame Vertex Buffer acting weird

I've exhausted my brain and have come to you for help. I recently started working on a project to test out Monogame, and quickly ran into an issue, I'm not sure if it's my fault or Mono's. I have a system where a level has a bunch of static…
Doodles
  • 109
  • 1
  • 11