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

OpenTK.Graphics.GraphicsContextException

Is all I'm getting once the game crashes, It started happening few weeks ago, but I didn't mind it because it happened once in a blue moon. But now it's happening every few seconds, and its really frustrating. I don't know what is causing it and I…
SpoocyCrep
  • 604
  • 7
  • 23
0
votes
0 answers

What can cause an IF statement to still trigger, on a FALSE return?

Im writing in c# for XNA MonoGame, and have written up an enemy state enumeration to allow me to determine what logic to use for my enemy at each update function. Here is the enumeration: public enum EnemyState { ///…
Gnemlock
  • 325
  • 6
  • 22
0
votes
1 answer

360 FOV depth buffer by topology and 2D shadows

in prev question https://stackoverflow.com/questions/32085542/how-to-define-a-matrix-to-transform-2d-plane-into-perspective-360%C2%B0-fov i've asked for a matrix solution for 2D shadows, where depth to the nearest caster is found by all around…
Oleg Skripnyak
  • 301
  • 2
  • 13
0
votes
1 answer

Monogame content pipeline tool failing to compile XML data to XNB

I'm new to the Monogame content pipeline tool, as opposed to XNA which would do the compiling you need on itself. So I may be having a pretty simple problem I fail to see a solution for. Here's my XML file:
Johny P.
  • 648
  • 1
  • 9
  • 31
0
votes
1 answer

C# HLSL/XNA/MonoGame Problems

First of all, im new to shaders and xna. I've been trying to follow this tutorial: http://www.xnahub.com/simple-2d-lighting-system-in-c-and-monogame/ I've done everything he said, I even ended up copy/pasting some parts to be totally sure although –…
Voxed
  • 31
  • 7
0
votes
1 answer

Trouble getting JSIL to compile

Every modern version of JSIL I ever try to get working with XNA ends up with this error. Everywhere I've ever looked in the past for information about why it doesn't run ends up with an answer about XNA 4.0 not being installed properly or…
0
votes
1 answer

Drawing a Sprite using Monogame

I'm just starting with Monogame and I'm trying to make a simple sprite, which later is meant to be a button. I've searched all around and done several tutorials, but I can't make it work. I just keep getting the blank, blue screen. Here's my…
Lut_99
  • 13
  • 1
  • 5
0
votes
2 answers

C# Monogame - passing arguments on startup

So I want to have a winforms GUI for my game... But I can't seem to find a GUI lib that is tested to work with Monogame. That's why I have another plan: Create a WinForms Project to act as a startup for my game. Then, when the user clicks "Start…
Johny P.
  • 648
  • 1
  • 9
  • 31
0
votes
1 answer

Universal Win8.1 app genre setting

I'm working to create a MonoGame game as a Win8.1 universal app. As I remember from my previous WinPhone 8 / WinPhone 8.1 Silverlight apps, in order for the OS to understand that an app is a game and should be shown in the Games Hub (or Xbox section…
Spyros P.
  • 296
  • 3
  • 14
0
votes
1 answer

TouchPanel in MonoGame reset after orientation change on Win 8.1

I'm creating a Universal (Win 8.1 + Win Phone 8.1) app using C# / Monogame (VS 2013). I'm using MonoGame v3.4. In my game1.cs initialization code, I set: TouchPanel.DisplayWidth = _drawState.ScreenBounds.Width; TouchPanel.DisplayHeight =…
Spyros P.
  • 296
  • 3
  • 14
0
votes
1 answer

Download files from a server in C# monogame android

I have an APK that is extremely large and uses very high-res files, and i was wondering if there was a method i could call to download those files and move them into the program's files. i can have the files uploaded to a server so that when the…
0
votes
0 answers

Remove Taskbar Icon for a Windows Desktop Monogame Application?

Is there a way to remove icon from the taskbar for a monogame windows desktop application? I tried to re-write the code mentioned in Win32: How to hide 3rd party windows in taskbar by hWnd in C#, but it didn't work.
Gaurav
  • 11
  • 3
0
votes
1 answer

StartActivity Not working Monogame

I'm trying to open a webpage in my Monogame app, but it is saying "The name 'StartActivity' does not exist in the current context" My code is : var uri = Android.Net.Uri.Parse ("https://www.google.com/"); Intent launchBrowser = new Intent…
0
votes
2 answers

MonoGame - Unit Convertion

I want to use my own Unit"system". Something like 1 Pixel is equals to 0.01 Units. Now when I want to draw something with my own Unitsystem, I always have to multiply/divide the value by 100. I've found some answers that mentioned to use matrix in…
Djeurissen
  • 377
  • 5
  • 15
0
votes
2 answers

C# XML Error: System.InvalidOperationException

I'm getting weird error when serializing this XML: Content/splash Error: "A first chance exception of type…
Valli3
  • 153
  • 2
  • 12
1 2 3
99
100