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
1 answer

Monogame Texture without colors

I can't find solution for this problem: I'm using VertexPositionTexture to create rectangle with texture and DrawUserPrimitives to draw some primitives. Rectangle is: tmpPoint.VerticesList[0] = new VertexPositionTexture(new Vector3(-size, size, 0),…
sahap
  • 390
  • 3
  • 19
3
votes
1 answer

How to move my sprite in MonoGame using C#

First off, i'm fairly new to programming, about 2 months in, i dabbled a bit in Console Application, WinForms, and still using the ugly console to get better at algorithms in general. But now, I wanna start digging into game programming, because…
Maxwell
  • 101
  • 2
  • 10
3
votes
1 answer

XNA Monogame effective draw primitives

I'm new in Monogame (OpenGL). I want to draw 10.000+ primitives, just rectangles. public class RectangleObject { public BasicEffect Effect { get; set; } public Matrix PointTranslation { get; set; } public Matrix PointRotation { get; set;…
sahap
  • 390
  • 3
  • 19
3
votes
2 answers

What's the deal with Monogame, SharpDX, and XNA?

I've been doing research on good tools to create games with, and I came across Monogame, Sharpx, and XNA. I have some questions regarding each: When I create a new windows project (which advertises that it uses DirectX 12), the code template looks…
Eric
  • 444
  • 7
  • 19
3
votes
1 answer

Use monogame with winforms

I'm currently trying to create a mapeditor using monogame and winforms in C#. I'm working in Visual Studio 2015 on a Windows 7 machine. I created a winforms project and proceeded by adding the following references: MonoGame.Framework, OpenTk and…
TS1997
  • 106
  • 1
  • 11
3
votes
0 answers

Extruding a shape into 3D geometry in monogame/Xna

I have previously done a project of building a 3D environment that allow user to draw a shape and then extrude it into a 3D geometry (e.g. a circle into a cylinder) using a javascript library Three.js with a function called…
3
votes
2 answers

Why are MonoGame's Rectangle class fields immutable in F#?

let rect = new Rectangle(x, y, sprite.Width, sprite.Height) rect.X <- 888 The second line fails in F#, but in C# the assignment works. I am not sure why.
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
3
votes
1 answer

Drawing a tiled map with Monogame

I've been trying to implement a function that lets me draw the tiles inside a tiled file (.tmx). I've looked around and found a kind of working piece of code but it stretches out the tiles. This is the code I found and edited a bit: private void…
Blapple
  • 67
  • 1
  • 1
  • 11
3
votes
1 answer

Making a button Xna / MonoGame

I am wondering what the best way to make a button in MonoGame is. I tried to look for an answer but none seem to be out there. Is it bad practice to use WinForm buttons? If so, what viable alternatives exist?
user4901669
3
votes
2 answers

Scale all sprites on screen based on resolution

I decided to move my game from windowed to fullscreen mode and that's the first problem I face. I'm looking for a way of resizing all of my sprites based on screen resolution. My background is now in the (0, 0) coordinates, but I need to have it and…
Johny P.
  • 648
  • 1
  • 9
  • 31
3
votes
2 answers

C# Monogame - Load level from file

I am building a 2D platform game. But the guy making the videos just showed how to create a map and tile class and loaded the level from an array he made. I heard that's a bad practice and people should load their levels from files... I know how to…
Johny P.
  • 648
  • 1
  • 9
  • 31
3
votes
2 answers

MonoGame templates in Visual Studio 2015

I just installed Visual Studio 2015 and now want to start a new MonoGame project (C#, Windows DX). I got MonoGame installed, as well as XNA. The problem is that the templates are not showing up in the New Project dialogue. On Visual Studio 2013,…
nilllzz
  • 205
  • 3
  • 14
3
votes
0 answers

Issue with Xamarin.InAppBilling

I'm working with the Xamarin.InAppBilling component, and consistently encountering an error. The problem is with the override method: protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { // Ask the open…
3
votes
2 answers

Monogame: WAV not playing

This is MonoGame 3.4 and I'm using it through VS2013. I'm compiling my WAV file using mgcb the same way as my textures. MGCB works fine, but when it comes to playing a sound using SoundEffect class, it doesn't play anything. There is no exception…
dotNET
  • 33,414
  • 24
  • 162
  • 251
3
votes
1 answer

How to check if Mouse is available in XNA - Monogame

I'm using Monogame to develop an universal app for Windows Store and Windows Phone. I know that is possible to check if a TouchPanel is available and I'm looking for a method that do the same thing with a mouse. I can't ignore the fact that a mouse…
lukemols
  • 71
  • 2
  • 11