Questions tagged [monogame]

Open-source implementation of Microsoft's XNA 4, for Windows, Mac, Linux, Android, and iOS, among others.

MonoGame is an open-source implementation of Microsoft's XNA 4, built on top of DirectX or OpenGL based on platform. It allows developers not only to make new games, but often to port an existing game built with XNA to other platforms, using Xamarin for mobile. Supported platforms are: iOS, Android, Windows (OpenGL & DirectX), Mac OS X, Linux, Windows Store Apps (for Windows 8 and Windows RT), Windows Phone 8/8.1, PlayStation Mobile (currently 2D only), OUYA, and most recently Windows 10 (UAP).

791 questions
11
votes
4 answers

GUI Library for MonoGame

Is there any GuiLibrary available, which works with MonoGame? I know there are some GUI Libraries for XNA but I assume most will not work with MonoGame. Even simple stuff like Buttons and Inputfields would help me... Thanks.
Marco
  • 840
  • 2
  • 10
  • 17
10
votes
3 answers

What problems could occur if you make use of both the MonoGame API and the underlying graphics API?

What kinds of problems could one run into if they were making a game with MonoGame and started making calls to the underlying graphics API as well? For example, if I wanted to do something in a MonoGame project that MonoGame didn't necessarily…
SpartanDonut
  • 2,937
  • 1
  • 23
  • 37
6
votes
1 answer

Compiling a Monogame Game into a single .exe

Is it possible to compile a monogame game into a single .exe? I know if you go in the debug or release bin, there is in fact a .exe your game, except you move this .exe's file location or try to run in on another computer it crashes. I am also aware…
user27483
  • 91
  • 1
  • 3
3
votes
1 answer

MonoGame: Music does not stop playing upon exit of game

I use MediaPlayer to play the background music. Sometimes, the music does not stop playing when I exit the game. This is even though I use the following code: protected override void OnExiting(Object sender, EventArgs args) { …
Adok
  • 31
  • 1
3
votes
1 answer

MonoGame window is huge although it should be small

I'm using Monogame to create a simple game. In my Game1 class initializer I set this: Graphics.PreferredBackBufferWidth = 1280; Graphics.PreferredBackBufferHeight = 1024; Graphics.ApplyChanges(); My screen resolution is 2560x1600, so the window…
SwiftedMind
  • 135
  • 3
2
votes
2 answers

MonoGame - Get the 2D area of a 3D object

I'm writing a 2d game, but decided to make some 3d objects that my 2d character can pick up. I've got them displaying on the screen - but can't work out how to get the 2d area that the 3d object is displayed at (so I can do 2d collision…
Andy Clarke
  • 123
  • 4
2
votes
3 answers

How can I fix this error about loading .wav assets in MonoGame 3.2?

I'm trying to add a music file to my project, but I get the error "Could not load EpicScores.wav asset!" I load the music file like this: Song sound1 = Content.Load(@"EpicScoreCreatorOfWorlds.wav"); I've tried both with and without the .wav…
2
votes
2 answers

Monogame pipeline tool: "Build failed: 1 is not a supported code page."

I've previously done some coding with Monogame 3.6 in VS 2015 on Windows 10 without any problems, including using the pipeline tool. Last week I was forced to reinstall my whole system and now have VS 2017 + Monogame 3.6. Suddenly the pipeline tool…
Flo B
  • 23
  • 2
2
votes
1 answer

Checking Collisions Within a Sprite List in MonoGame

I'm trying to learn game dev, and I'm using some of Oyyou's tutorials. My problem is: I have a list of sprites, using a sprite object, and I would like to know how to check for collisions between different sprites. I have a basic understanding of…
1
vote
1 answer

How can I set a MonoGame window's position?

How do I set the position of my window in MonoGame?
offi
  • 113
  • 5
1
vote
0 answers

Generic gamepad support monogame

I recently made the transition from xna to monogame, but I am now stuck in a pretty big problem. I do not have an xbox 360 controller, so i have been using x360ce and dropping the .dll into the xna debug folder, and my gamepad would work fine.…
user2904986
  • 11
  • 1
  • 4
1
vote
2 answers

Velocity Issue With MonoGame

I'm relatively new to programming velocity and such as I used to use Unity so it was already implemented. Right now, I'm using MonoGame and have an issue with my velocity code. Whenever I decelerate, my "velocity.X" never becomes 0 it just keeps…
Callum
  • 13
  • 3
1
vote
1 answer

Split tiles into Chunks [2D]

I'm trying to make a Chunk class for my Tile class creating Chunks of 25 Tiles each, But for some reason it doesn't work correctly Tile.cs extends Sprite.cs class Tile : Sprite { public TileType TileType { get; set; } public…
legendree
  • 23
  • 3
1
vote
1 answer

How to create enemy "flash-light" for 2D game?

I'm developing a 2D stealth game but I cannot figure out how to create something like a torch (flashlight) that the enemies hold and look around with.Any help? Also, if relevant, I'm using MonoGame.
1
vote
1 answer

How to draw a circle with MonoGame Extended?

I can not figure this out and have basically no idea. I have already installed MonoGame.Extended through NuGet. I have heard you can draw basic shapes like circles with it, but where can I find the method?
1
2