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

Could not load asset as non content

Im trying to load a png file as a test 2d texture. I'm receiving the error "Could not load testTexture asset as a non-content file!". I'm loading the png by the Pipline.MacOS application. I've set the platform MacOS and rebuilt it. After building…
Joshua de Leon
  • 59
  • 1
  • 4
  • 19
0
votes
1 answer

MonoGame - WinForm for homescreen?

I'm starting a project with monogame. I've made games with MonoGame before, but I felt the switching between multiple forms and monogame was clunky. For example I had a homescreen with buttons to Play, Hiscores & Quit. So I had forms for the…
SJ19
  • 1,933
  • 6
  • 35
  • 68
0
votes
0 answers

How to clone a xamarin project from git that is missing the binaries?

I have pushed a xamarin monogame project to github, without all the compiled binaries and dependencies (such as the monogame library). I have created a .gitignore that excludes all these files. I only push the actual .cs files, the Content folder…
Kokodoko
  • 26,167
  • 33
  • 120
  • 197
0
votes
0 answers

MonoGame/OpenTK GLControl Widget in Windows Form using Xamarin

I'm trying to get MonoGame working in a windows form in Xaramin, but the key word here is in Xaramin as I have a custom Ribbon control working that is Cross Platform (working in Windows and Linux currently). I was trying to port jaquadro's version…
RT Roe
  • 106
  • 7
0
votes
1 answer

Why does my sprite not move

Im trying to make a simple Pong game using classes for the first time, but after following some tutorial to the letter, my code is not working. Even though I do have everything the exact same. Could anyone help me by taking a look at it? The Child…
0
votes
1 answer

Position reset when minimizing

When I start my application, the object spawns at the given position (given vector). But when I minimize the monogame window and reopen it, then the object is in the upper-left corner. Why is this happening? NOTE: this is my Draw method: public…
Jelle
  • 165
  • 8
0
votes
1 answer

Draw script eating up memory and cpu

I've been using this script to draw lines, and it works, but when I run my game it starts eating up my resources like no one's business. public static void DrawLine(Vector2 start, Vector2 end, Color color, int width, float alpha, float depth) { …
Gurman8r
  • 301
  • 1
  • 4
  • 19
0
votes
1 answer

Change player sprite on key press

I've been getting into monogame recently and I came across a problem. I've loaded a player sprite and I've got movement working, but what I want to do is change the sprite when I press right/left. I want the player ship to lean left/right according…
user2572329
  • 35
  • 1
  • 8
0
votes
1 answer

Get current used videocard

I am programming a simulation in xna/monogame; but i want to go sure and wanna warn (myself ..( = ) if I use inadventertly my on-board video card.. Do you know any way to solve my problem? Does the graphicsdevice offer a property to determine…
3r0rXx
  • 1
  • 2
0
votes
1 answer

MonoGame(XNA) Won't detect multiple controllers(Using PlayerIndex)

I've been trying to get two controllers working in a MonoGame Project I'm working on and the only Controller that seems to work is 'PlayerIndex.One'. I've tried switching the controller indexes and it won't work whenever it is on anything except…
Toty
  • 1
0
votes
2 answers

MonoGame - Weird "The content file was not found." exception

Yeah, I know what you think, probably something like "Don't you have wrong path? -_-" And I can assure you, I have right path. Not saying it was working all the time, but when the exception pops up, and I will choose to continue, the program…
Valli3
  • 153
  • 2
  • 12
0
votes
1 answer

Simple platformer collision algorithm is glitching

I'm having a glitch with this simple collision algorithm. I'm doing the rpg game tutorial from codingmadeeasy, and the collision is much alike any algorithm collision I've done in previous platformer style games. I've had this problem with previous…
Giora Guttsait
  • 1,279
  • 15
  • 29
0
votes
0 answers

Content Manager VS Resource Manager VS Asset Manager

When creating a class that will handle the game contents/resources/assets and using the MonoGame framework, which is the best to use as a name for the class and why? Is it the ContentManager.cs, ResourceManager.cs or AssetManager.cs? I am aware that…
arvicxyz
  • 381
  • 3
  • 13
0
votes
0 answers

NullReferenceException When Resolving SpriteBatch with Ninject

I have a very, very basic MonoGame game (almost just a new project, with just a single image drawn on screen). In my Game class, I created an instance of StandardKernel. In LoadContent, I bind it to my SpriteBatch: protected override void…
ashes999
  • 9,925
  • 16
  • 73
  • 124
0
votes
1 answer

Monogame|XNA Draw a black screen with a transparent circle at a specific location

I try for some time to create a game. But at the very beginning, I am stuck. I just want to draw a black screen with a transparent circle overlaying it. I have searched a solution on a lot of french sites, but no responses I drew you two images to…
Airwaito
  • 3
  • 1