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

Create an in-game TextBox

So I am trying to implement username system into my game and to do so I need to let the user input their desired username. I created a TextBox class. EDIT Upon making a further research on other people's experience with the creation of a TextBox…
Johny P.
  • 648
  • 1
  • 9
  • 31
0
votes
2 answers

How to fill a 2D shape?

I have a Shape class that has 4 points (Vector2). This way, the shape can be manipulated for whatever purpose. I'm wanting to be able to fill this shape with a color of choice, but am not sure where to begin. I found references to something called…
John Brooks
  • 69
  • 1
  • 8
0
votes
0 answers

Publishing in Visual Studio 2015 Community

I have spent all day trying to figure out how to publish a project I made in school. My intention is to use it as part of my portfolio for future job prospects. I have one math class left and I get my BS in CS. In school, we only created installers…
Isaac Dee
  • 38
  • 1
  • 2
  • 10
0
votes
3 answers

SoundEffect.Play() is throwing NullReferenceException even though sound is loaded

Alright, I'm having a really odd issues. I'm right now writing a simple game in C#/MonoGame (on Linux). I'm trying to play a SoundEffect. When I call Play() (even though it's been properly loaded in the LoadContent() method). It's throwing a…
Benjamin
  • 1,223
  • 1
  • 13
  • 22
0
votes
1 answer

White lines between titles

I create simple RPG game on Android use Monogame and Xamarin and I have problem with tiles. I use tiles 16x16 but I scale it to 32x32, I create simple Map Editor, I can create maps and convert to JSON format. But after load map in game I see lines…
thebox
  • 3
  • 2
0
votes
0 answers

unfortunately, *appname* has stopped with MonoGame

I just downloaded MonoGame and created a MonoGame Android project in Visual Studio. When I run it, it starts an Android emulator, but the screen remains black. graphics.GraphicsDevice.Clear(Color.Green); doesn't work and it doesn't render any…
Agilek
  • 31
  • 5
0
votes
1 answer

Shader(Effect file) Crashing on Load

It worked just fine in the 3.5 stable version, but after upgrading to the lastest development branch (3.6), it no longer works, giving me this error on effect = content.Load("fileName") An unhandled exception of type…
Shyy Guy
  • 232
  • 3
  • 18
0
votes
1 answer

C# XNA/MonoGame Paging: How To Prevent Duplicates

So, lately I've been having a problem. Some of you may have seen my post on Writing Lists to and from Binary Files. This time, though, it's not the Users. It's the Interfaces. I've created a game where you can create a user, and the User is…
Daniel G
  • 245
  • 4
  • 15
0
votes
1 answer

C#/Monogame: Menu Items Change color on Mouse Hover Issue

I have a menu for my game that looks like this: The Code for it: for (int i = 0; i < menuItems.Length; i++) { //create collision detectiong rectangle x and y pos same as text below, length and width based on font. …
0
votes
0 answers

Why do I get a "IndexOutOfRange" exception on SpriteBatch.End() on Xamarin only?

I'm making a game in MonoGame and it works perfectly on Windows, but when attempting to port it over to Android using Xamarin I get a "IndexOutOfRange" when calling spriteBatch.End(). Here's the…
Cryru
  • 61
  • 9
0
votes
2 answers

C#/Monogame - Reading in Single Node from XML always returns NULL

Currently I am trying to randomly select a name from an XML list and print it in the Console. However, the node seems to always be null. My XML Looks like this:
0
votes
1 answer

Trouble understanding render targets and back buffers in monogame

My graphics device is set up as follows: GraphicsDeviceManager = new GraphicsDeviceManager(GameBase.GameRef); GraphicsDeviceManager.PreferredBackBufferWidth = 640; GraphicsDeviceManager.PreferredBackBufferHeight =…
NibblyPig
  • 51,118
  • 72
  • 200
  • 356
0
votes
1 answer

Windows Phone rendering issue in Monogame

I'm trying to create portrait application but sprites are like this: Screen I can render sprites only in Landspace correctly. How can I fix it? I'm thinking about programming air hockey. So I need to fix portrait problem.
0
votes
0 answers

Monogame + Cordova in one application

Is it possible to mix Monogame and Apache Cordova in one application? The goal is to have user interface in HTML/CSS/JS for browsing, and a game started from this UI with a button. The game and the UI would be separate, which means it's not needed…
Arek
  • 1,276
  • 1
  • 10
  • 19
0
votes
2 answers

Could not load assets as non content files on Android?

I have included a SpriteFont asset and an mp3 asset in my MonoGame cross platform project, the strange thing is that the the game compiles and runs fine on the iOS simulator but whenever I try to build the game on Android I get warnings like this…
electrithm
  • 53
  • 6