Questions tagged [monogame]
Open-source implementation of Microsoft's XNA 4, for Windows, Mac, Linux, Android, and iOS, among others.
799 questions
0
votes
1
answer
113
views
Why does early z not work with fragment shaders using discard
I am currently trying to understand why using discard inside of a fragment shader disables early z.
I am using a simple cutout shader, which discards fully ...
1
vote
0
answers
116
views
How can I address multiple collisions within a single frame?
So, in my breakout clone, I've encountered issues where the ball will sometimes phase through bricks and the borders if it collides with one and then immediately collides with another after. My guess ...
0
votes
0
answers
66
views
Analyzing lag spike in Monogame
The game I am making is having big lag spikes once every 10 seconds or so while running. The spikes seemed to correlate with garbage collection (although I can't be 100% sure), so I thought my problem ...
0
votes
0
answers
99
views
Understanding C# Tasks
I use a lot of path finding in my Monogame project which is taking a toll on the framerate, because in the worst case finding a path can take 200ms. So I looked into using Tasks to spread path finding ...
0
votes
0
answers
61
views
Wrong colours when importing from Blender to Monogame
I have created a model in Blender and exported it as a .fbx file to Monogame, and the colours come out wrong. Here is the model as seen in Blender and as seen in my game respectively:
All the settings ...
0
votes
1
answer
47
views
Problems supplying per-vertex alpha data to Monogame shader
I am trying to make a trail renderer in Monogame. What I have currently is a procedurally created trail-mesh with properly applied UV coordinates, and what I have left to do is apply a per-vertex '...
2
votes
1
answer
335
views
Implementing animation curves using cubic bezier curves
I am trying to implement an animation system using cubic bezier curves. It was easy to setup the calculation of the curve itsself. Only evaluating the curve at a specific time x gives me headaches.
I ...
1
vote
1
answer
67
views
Move mouse from one viewport to another
I am currently implementing a map editor for a 2D platformer and run into trouble with my viewport and mouse movement.
I have two viewports: one main viewport in the top 2/3 of the screen which has a ...
3
votes
1
answer
117
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.
...
0
votes
2
answers
126
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'...
0
votes
1
answer
144
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 ...
0
votes
1
answer
152
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'...
0
votes
1
answer
122
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 ...
0
votes
0
answers
505
views
How does Monogame achieve a target FPS?
So in monogame, in your Game1 class you can write something like this:
...
0
votes
1
answer
64
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:
...