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

Monogame Virtual Gamepad Android

I'm having trouble getting an Android MonoGame project to use the virtual gamepad correctly. I set up my virtual gamepad according to this example for iOS The gamepad draws correctly but refuses to respond to touch input. I've found similar problems…
Will Decker
  • 3,216
  • 20
  • 30
3
votes
1 answer

How to get orientation of the phone with SupportedOrientations="Portrait"

I write a simple game with using MonoGame library. As far as I know MonoGame (unlike XNA) doesn't automatically support changing orientation of the phone and it is necessary to use RenderTarget2D and then draw it with a proper orientation. For this…
Eugene
  • 143
  • 10
3
votes
1 answer

Scale Sprite up and Down to give illusion of a jump

I have some code that I wrote that works, but I feel it could be better and wanted to get some feedback. The goal I had is to have a Sprite Scale up and back down in a timely fashion when a button is pushed so that it gives the illusion of jumping…
Mastro
  • 1,477
  • 2
  • 22
  • 52
3
votes
2 answers

Splash/Loading Screen while LoadContent is running in AndroidGameActivity

First of all I want to say that I'm really new to C# and Monogame in general. My problem is with displaying a screen. I have a layout resource called loadingsplash.xml and want to show it while the Game activity is running LoadContent(); Flow…
user3019799
  • 309
  • 3
  • 7
3
votes
3 answers

How to properly update Monogame with a Github PR

Heey, I got a little problem. The current Monogame 3.2 build available hasn't got a working template for Windows Phone 8. This will result into a black screen and a non working app. So I went onto their git hub and found the issue…
MrME
  • 337
  • 2
  • 14
3
votes
1 answer

MonoGame GetData implemented exception

I just started to learn XNA/MonoGame and I encountered a weird exception. The error says: The method or operation is not implemented. And what's even more weird that a very similar code, almost the same, works. The only difference is that the other…
Zipzap
  • 37
  • 8
3
votes
1 answer

Windows 8 Store MonoGame - How to extract bitmap from Camera

I am creating windows 8 store application with MonoGame framework. I want to get each bitmap from camera in order to process some image recognition on that bitmap. The thing is I only get the whole video stream from camera (randomAccessStream) but…
Minh Nguyen
  • 2,106
  • 1
  • 28
  • 34
3
votes
1 answer

Monogame and XNA - how to load/use a semi-transparent image?

I am an experienced developer, but a total noob to graphics/game programming, so please - explain it to me like I'm a 5 year old. I am writing a simple game in order to learn game programming. I created a *.png image using Paint.NET, and made the…
Todd Davis
  • 5,855
  • 10
  • 53
  • 89
3
votes
1 answer

Loading sound file into monogame

I'm trying to load sound into my game. I downloaded an .mp3 sound (a second long) and tried to load it both as Song and as SoundEffect, but it didn't work, so I tried loading the same sound but as .wav and I was able to load it as a SoundEffect. The…
kingblade
  • 113
  • 2
  • 6
3
votes
1 answer

MonoGame SpriteFont not working on iOS

We are having trouble loading a plain Arial spritefont as an XNB in MonoGame on iOS. I tried this using the latest develop branch. These were made on Windows, then followed up in Xamarin studio for the iOS part: We have a stub XNA project with a…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
3
votes
0 answers

Testing keyboard and touch capabilities in Windows 8

I'm writing a game using monogame for Windows 8. It has two methods of control; where there's a keyboard present, it uses that; otherwise, where touch is available, it uses that. However, although I can simulate touch using the simulator, I can't…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
3
votes
3 answers

Monogame XAML readout textbox inside gameloop

Heey, I'm currently working on my second XNA/Monogame game for Windows 8/Metro but ran into a problem. We now came at the point which we need to store a highscore with a name attached to it so I need to handle the onscreen keyboard to get the info.…
MrME
  • 337
  • 2
  • 14
3
votes
3 answers

Loading a font using monogame with VS2012/13

I've been trying this for a while, and I believe that I'm doing everything correctly (as far as the code is concerned): SpriteFont font = Content.Load("Arial"); However, I then read that you need to compile the font using a tool, which…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
3
votes
1 answer

Monogame (monoXNA) heats Phone

I have transferred the XNA project to mono. Everything works fine. But I noticed that the phone (HTC 8x) heated. native-XNA game in debug worked fine. The resolution has increased (480x800 vs 720x1280) and fps too (30 vs 55). Are there any…
3
votes
3 answers

C# MonoGame Help? (Content.Load("Invader");)

I am Making a Space Invaders Game using Open GL in MonoGame and I am trying to load a texture that I have added to the Content folder (It is a PNG file called "Invader") The code that I use is: invader = Content.Load("Invader"); However…
user2635139
  • 59
  • 1
  • 2
  • 7