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

Windows 10 app running within debugger contains text on top left corner with a black stripe

I need to know what it means when there is text with a black stripe on top left corner of a Windows 10 app when I run it from Visual Studio debugger (C#) as shown below: Also, how to hide this text with a black stripe?
Earlgray
  • 647
  • 1
  • 8
  • 31
0
votes
1 answer

MonoGame - GraphicsAdapter.DefaultAdapter.Current.Width/Height Reports wrong value on MacBook Pro 2015

I'm attempting to get the resolution of a the user's monitor using MonoDevelop/C#. On most of the machines I've tested this on, it works flawlessly - with exception of this Macbook Pro. Native resolution is 2880x1800, but DefaultAdapter width…
stefannew
  • 162
  • 15
0
votes
1 answer

How to make my Monogame windows game compatible with every single screen type?

First of all, I posted this question here and not at game development because I just started my project and this question is not really about XNA or Monogame libraries. So, i am trying to make my game compatible with every single screen type. there…
Captain JJ
  • 89
  • 1
  • 1
  • 10
0
votes
1 answer

Monogame, C# - Using multiple input types for multiplayer game

I'm making a local multiplayer game. I need to be able to use both keyboard input (most likely only for player one) and other joystick controllers for the rest of the players. I cannot use PlayerIndex as most other games do as it is made for…
0
votes
1 answer

MojoShader: HLSL to GLSL conversion

I recently started developing an application using Monogame and entered the world of shaders and shading languages. The target platform is GL. Which means that I have to write my shader in HLSL, which subsequently gets converted into GLSL by…
MutomboDikey
  • 155
  • 2
  • 12
0
votes
3 answers

C# Clamp object to window?

In Monogame (c#), I can't figure out how to keep an object (in this case a burger) to stay inside the game window's borders so it doesn't go off the game window when the cursor does. Or in other words, "clamp" an object to the game window. …
Blucyrik
  • 5
  • 3
0
votes
0 answers

Monogame/XNA : Motion rectangles leaving trails

I'm doing basic tests on Monogame using Monodevelop as IDE. What I have is a rectangle moving random and always diagonally bouncing against the window boundaries (I'm running the game in window mode). I'm setting a velocity vector but as soon a I…
Bizcochito
  • 57
  • 1
  • 7
0
votes
2 answers

(monogame) Multiple instances of sprite inherited object

I've seen questions similar to what I'm asking, but they don't quite give me the answer I'm looking for. I want 5 instances of my sprites to show up on screen and spawn in different locations. For some reason though instead of 5 instances, each…
Starkium
  • 1
  • 2
0
votes
1 answer

Monogame - how to automatically move rectangle up and down and repeat?

So I'm working on my menu's background and I Draw() a texture there with a rectangle. How would I have the rectangle wait, move up and then down, wait and repeat? I tried the following: // Update() if (Rectangle.Y = -16) // My texture is positioned…
Johny P.
  • 648
  • 1
  • 9
  • 31
0
votes
1 answer

How could I add BoundingBox around models in order to do collision detection in MonoGame/XNA?

I'm working on a 3D MonoGame project that involves in drawing models and checking collision of models. My idea is to put a BoundingBox around each loaded model and using BoundingBox.Intersects() to do collision detection. However, I'm not that…
Luyao Tian
  • 45
  • 1
  • 5
0
votes
1 answer

Splitting a Texture2D into a two dimensional array

I would like to split a single Texture2D into Texture2D's of size x, and put those into a 2D array. The original Texture2D's size will always be a multiple of x. What is the easiest way to do this?
user4901669
0
votes
0 answers

MonoGame/XNA Texture2D best practise

For a huge map I have to render many different Textures. Currently I am unsure about the best performance aproached to solve that problem. In my optinion there are two options. Render the whole tilemap (tile per tile) every draw cycle or create…
Bin4ry
  • 652
  • 9
  • 34
0
votes
2 answers

For loop that progressively adds more objects to List()

I am having trouble finding of a way to go about creating an equation inside my for loop that will generate a number of objects in a List collectibleList depending on the level that the character is on. As it is now, my list only creates one…
crin
  • 73
  • 1
  • 2
  • 13
0
votes
0 answers

Loading Texture2D crashes in fullscreen, hangs in windows mode

I downloaded and installed the latest version of Xamarin Studio and MonoGame. I then created a brand new MonoMac project. I added a .jpg file to my /Content directory and tried to load it using Content.Load public class Game1 : Game { …
Johnathon Sullinger
  • 7,097
  • 5
  • 37
  • 102
0
votes
1 answer

How can I achieve a scratchcard effect?

I want to achieve a scratchcard effect like the one in the video below. But it seems quite hard to me (I'm a newbie when it comes to 2D graphics), and I would greatly appreciate a little help, if you have some snippets that could set alpha of the…
user509981