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

Fullscreen game not rendering to proper size for resolutions besides 1920 X 1080

I am working on a monogame project. When I started trying to test it on alternative resolutions, I encountered an odd issue. The game does not render properly to fullscreen on resolutions besides 1920 X 1080. Here is the code I am testing…
iWiggins
  • 636
  • 1
  • 6
  • 12
0
votes
1 answer

Dynamycally loading resources in Monogame framework

Is there any generic way of loading resources runtime in monogame. Like loading Texture2d would be like this Texture2D.FromStream(graphixDevice,someStream) is there something like Resource.LoadFromStream(stream);
0
votes
1 answer

How do I get a FULL build of OpenTK for Visual Studio?

I have OpenTK 2.0 installed via NuGet, but it seems that some classes (Point, Rectangle, etc) aren't available in the OpenTK namespace. I can replace them with System.Drawing.Point and Microsoft.Xna.Framework.Rectangle, but then I'm dodging…
GameKyuubi
  • 681
  • 1
  • 10
  • 25
0
votes
2 answers

Why is my game serializing this class?

So I'm making a game, and it saves users' progress on the computer in a binary file. The User class stores a few things: Integers for stat values (Serializable) Strings for the Username and the skin assets Lists of both the Achievement class and…
Daniel G
  • 245
  • 4
  • 15
0
votes
1 answer

only one tile drawn in map xna c#

I am having this problem where the tiles will only draw one specific texture. I have been looking at tile engines for the past few days and decided to have a go at my own one for educational purposes. I have managed to get only one tile on the…
0
votes
1 answer

Getting Correct Position of Image based on 2D Parallax Camera

My 2D engine is resolution independent and has a camera based on the article here: http://www.david-gouveia.com/portfolio/2d-camera-with-parallax-scrolling-in-xna/ I've implemented parallax scrolling into my camera class the same way the article…
Michael
  • 46
  • 6
0
votes
0 answers

VisualStudio cannot run code on MonoGame

I am having issues with running code that is written in VisualStudio 2015 in MonoGame 3.5. My two versions are compatible, from all I can see. VisualStudio has no issues running Console application codes, and also connects to Unity just fine (I can…
0
votes
1 answer

GameWindow in Monogame Cross Platform with OpenTK / Input

I am currently working on a game of mine with Monogame and it is a cross platform project (I would like it to run on Windows, Linux and Mac).I have a problem with the getting the input. I would like to have an event that is reaised when a KEY is…
Ivailo Korakov
  • 357
  • 2
  • 14
0
votes
1 answer

XNA: unknown loading music error appeared

I'm currently going through a book which teaches XNA. I have followed all the instructions to add background music but for some reason I keep getting this error: An unhandled exception of type 'Microsoft.Xna.Framework.Content.ContentLoadException'…
user3681449
0
votes
1 answer

Shader doesnt work in Monogame (With shader it looks like without) | C#

So i have following problem : I wanna have a nice bloom effect in my game. But when i try to use my shader and the shader.draw(); method is called it looks unchanged ... It looks like i wouldnt use a shader. Also when i change shader parameters…
genaray
  • 1,080
  • 1
  • 9
  • 30
0
votes
1 answer

Using NAudio for my GameBoy emulator

I have started to implement audio in my GB emulator and for this I am using NAudio. The emulator calculates the output into a byte array and after every frame loads it into a BufferedWaveProvider. For the output I use WaveOut which I start after the…
Patrick S
  • 3
  • 2
0
votes
1 answer

Will assigning a static object to another (non-static) variable make a copy of that object?

I have a static class that holds static textures for use throughout the game. public static class AssetManager { public static Texture2D someTexture; .... } My question is, if I were to assign that static texture to a variable in another…
0
votes
1 answer

Need help in suggestion for implementing animation changes via keyboard input

I am new here and not quite the best when it comes to coding. (using monogame variation of XNA for this) I have successfully recreated a class to animate my sprite sheet i have made but the problem I have encountered is that soon as I tried to…
Tenten
  • 3
  • 1
0
votes
1 answer

direct11 write data to buffer in pixel shader? (like ssbo in open)

I'm trying to write data to a buffer in hlsl shader. I know in opengl you need ssbo, but is there a corresponding buffer type in direct11?(I'm new to it). p.s. I'm using monogame so the newest shader model available is 3.0. thanks!
sunsflower
  • 15
  • 2
  • 8
0
votes
1 answer

Moving an enemy back and forth in Monogame / XNA

I am trying to achieve a very basic 2D game right now where an enemy is on the screen and it bounces back and forth between set points (50 and 500) kind of like a space invaders sort of thing. My issue is I can only get it to go right, but then not…
jayelj
  • 47
  • 6