Skip to main content

Questions tagged [monogame]

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

1 vote
0 answers
31 views

My Monogame Android game fails to launch on Release build, failing to find ContentTypeReader

Today I struggled with the problem that appears on building my Monogame Android game with Release option. On Debug, everything is OK, but for some reason my game crashes on launch with Release build. ...
Code Watermelon's user avatar
0 votes
1 answer
33 views

Weird behaviour with SpriteBatch.Draw in MonoGame

I'm creating a rhythm game. I'm trying to move automatically Notes from upside but something went wrong. Notes just stuck. Below is code, thanks in advance for help because I don't understand what I'...
sech1p's user avatar
  • 101
0 votes
1 answer
64 views

I got some wierd bug while building TMX files in Monogame

Today I tried to implement tilemaps to my game that I'm developing on Monogame. Those tilemaps were created by using Tiled map editor. For implementing my tilemaps I used Monogame Extended. I ...
Code Watermelon's user avatar
0 votes
1 answer
73 views

How to change layer depth according to player location?

I would like to change the layer depth of objects, so that the player can go behind them. Right now it looks like this when the player is behind the object: The problem is that the layer depth doesn'...
Markus's user avatar
  • 1
0 votes
1 answer
60 views

How to add gameTime to movement with acceleration and diagonal normalization?

I recently started rewriting my engine from scratch, because the old one was my first attempt and the structure was very messy. Everything has been going great, but now I'm being held back by some ...
Markus's user avatar
  • 1
0 votes
0 answers
82 views

Ideas for how to attach meta data to an arbitrary sprite sheet?

I am currently messing around with monogame and creating some silly sprite based games. One issue I have is when I get sprites for OpenGameArt or any equivalent they are often in spritesheets in a ...
kiooikml's user avatar
  • 101
3 votes
0 answers
163 views

2D Tilemap Collision resolution in C#/MonoGame

A bit of context about my game: I'm nearly 2 years deep into development of my game called Cosmorists. It's programmed in C# using the .NET 7.0.11 framework, and MonoGame 3.8.1 game framework and it's ...
Stellar Roots's user avatar
0 votes
0 answers
286 views

How does Monogame achieve a target FPS?

So in monogame, in your Game1 class you can write something like this: ...
DrZ214's user avatar
  • 348
0 votes
1 answer
38 views

How to correctly position a set of cuboids based on a direction property in MonoGame

I am trying to create a map for my game using a list of cuboid sections that are defined like this: ...
Maxim Gershkovich's user avatar
0 votes
1 answer
81 views

Is there a simple way to find where our code is keeping references to disposed/pooled objects?

In our c# game we use object pools to store sprites once the Dispose() method gets called.Then when the Sprite.Create method gets called if a sprite is in the pool it gets depooled, cleared and ...
Matteo's user avatar
  • 15
0 votes
0 answers
209 views

How to make 3D particles in Monogame?

I have made a 2D game and right now I am converting it to a 3D game. All fine so far, only for the particles I had used the particles library from monogame extended but this library only supports 2D ...
codymanix's user avatar
  • 364
0 votes
1 answer
651 views

Drawing Sprites and Primitives with layers in MonoGame

I'm writing my own 2D engine using MonoGame and I want to be able to draw 2D primitives (using DrawPrimitives) along with sprites using SpriteBatch. But when I draw them, the primitives are always ...
DragonSpecter's user avatar
0 votes
1 answer
201 views

Problems with rotating Child Objects

I'm writing a Transform script for a Monogame project and I'm trying for a few days now to fix the Rotate method of this script, but without success. Currently, the Parent transform only rotates ...
NOrlYNcE's user avatar
1 vote
1 answer
242 views

D3D11 ERROR ("invalid arguments") from HLSL shader

I am using MonoGame 3.8.1.303 with Windows/DirectX. I am just rendering a TriangleList using DrawIndexedPrimitives, but I am ...
codymanix's user avatar
  • 364
0 votes
1 answer
64 views

correct matrix to draw mesh as flat object

I need to draw a tilemap for a 2d game. For that I created vertices with their relative positions already hard baked. The coordinates start top-left with (0f, 0f) and z is always 0. I rendered them to ...
codymanix's user avatar
  • 364

15 30 50 per page
1
2 3 4 5
53