Skip to main content

Questions tagged [monogame]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
122 views

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 ...
Kerby's user avatar
  • 53
1 vote
0 answers
118 views

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 ...
no good's user avatar
  • 11
0 votes
0 answers
68 views

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 ...
Depenau's user avatar
  • 111
0 votes
0 answers
100 views

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 ...
Depenau's user avatar
  • 111
0 votes
0 answers
63 views

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 ...
Depenau's user avatar
  • 111
0 votes
1 answer
50 views

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 '...
Depenau's user avatar
  • 111
2 votes
1 answer
351 views

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 ...
Kerby's user avatar
  • 53
1 vote
1 answer
68 views

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 ...
Canox's user avatar
  • 113
3 votes
1 answer
120 views

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
2 answers
132 views

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
146 views

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
154 views

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'...
Kuvaitt's user avatar
0 votes
1 answer
122 views

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 ...
Kuvaitt's user avatar
0 votes
0 answers
508 views

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

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
196 views

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

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
  • 394
0 votes
1 answer
980 views

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
266 views

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
396 views

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
  • 394
0 votes
1 answer
115 views

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
  • 394
0 votes
1 answer
253 views

So - how do these work exactly? Right now I am making a buffer and setting the data every frame for my object, but I heard you can reuse the buffer, too. If the object is not changing in any way ...
Lukas Kawalec's user avatar
0 votes
1 answer
252 views

I'm currently developing a game in Monogame / C#. I have the underlying game engine set up in the following way: Entity/Component/System architecture A Scene includes a map, cameras, and a list of ...
Rich. T.'s user avatar
0 votes
1 answer
302 views

I'm currently rendering my whole game to a RenderTarget in order to stretch the scene to any resolution. I also have a bloom effect rendered with the scene. I'm now ...
Syll's user avatar
  • 11
0 votes
1 answer
831 views

I've been starting to write some XNA / Monogame code lately, and wanted to draw a quad with a Texture2D attached to it. After searching the internet for a while, I've come up with this render code: <...
Mickey's user avatar
  • 1
0 votes
1 answer
86 views

I'm working on a tile-based game and I'm trying to rotate my tiles as a group around the center of the screen and want to have the ability to zoom in and out. Here my code: ...
Canox's user avatar
  • 113
0 votes
0 answers
260 views

In some games like Keplerth or Archvale, a weapon basically points towards the mouse and stays around the player sprite. But when you attack the weapon swings. I don't believe this is done with a ...
ajrao's user avatar
  • 1
0 votes
1 answer
87 views

Hi I'm using a particle engine suggested from this answer I'm trying to create a seamless particle trail effect every similar to this (same) question However, when the vehicle is travelling too fast ...
web_dev_beginner's user avatar
1 vote
2 answers
1k views

I am creating a pixel-art game in MonoGame, and have written a shader to perform various effects on a sprite when rendering it, such as performing palette swaps, highlighting outlines, etc.. Most of ...
Bent's user avatar
  • 23
1 vote
1 answer
172 views

I wanted a tip, a guidance perhaps to know the best way to draw a tile all over the screen. This tile is a 16x16 tile that should be the floor in my top-down map. I set my resolution to 1280x720 and i ...
Gabriel Ozzy's user avatar
1 vote
1 answer
115 views

Whenever I seem to create a rotation matrix or try to zoom, the meshes that I draw to the screen get stretched and distorted. I've tried to make a simple rotation matrix like this: ...
Lukas Kawalec's user avatar
3 votes
1 answer
292 views

The Context I'm currently working on a game and its engine using C# and MonoGame. The engine is data-driven and I want people to be able to mod the game or make their own using my engine. All the ...
sboutin4's user avatar
1 vote
1 answer
9k views

I would like to implement a Perlin noise algorithm into my MonoGame project in order to procedurally generate 2D terrain. I've been using engines in the past (Godot, mostly) where there was an API to ...
atrefeu's user avatar
  • 113
1 vote
1 answer
413 views

I am rendering a diamond isometric map created in Tiled using Monogame.Extended.Tiled package. Here is where I'm trying to spawn a player with an object at ...
Emobe's user avatar
  • 11
0 votes
1 answer
144 views

I am quite new to Monogame. When I try importing a .spritefont file using the Monogame Pipeline GUI Tool and then build it, it gives me an error: "System.DllNotFoundException: Unable to load DLL '...
Dominicentek Gaming's user avatar
2 votes
1 answer
497 views

So I’m writing a player class and using floats to store the positon and velocity (Vector2) as well as using it when drawing. When it comes to collision I get the player bounds using this code: ...
user avatar
1 vote
1 answer
140 views

I am a former Unity user, and after a big pause in game dev decided to try out Monogame (I'm a software engineer IRL so I'd figure this is the best way to go). In Unity I was using scriptable objects ...
TanguyB's user avatar
  • 161
0 votes
0 answers
234 views

I want to use masking technique to be able to reuse tiles. Basically I have the base texture and an array of masking textures for different corners and positions and want to combine the two to get a ...
user avatar
0 votes
1 answer
2k views

I am trying to develop a menu application for a homemade arcade. However, when I use Process.Start(path) to open my monogame projects' ...
DubstepZedd's user avatar
1 vote
0 answers
151 views

I am working with the SkinnedMesh from this tutorial. I am at the point where I want to let my character run (which already works), but when I press the punch key on my keyboard, I only want the upper ...
x L u M i x's user avatar
0 votes
2 answers
258 views

So I had this idea of creating a 2D game where the player would just climb a tower the furthest he could. I do already have a camera and a scene class somewhat ready, but I'm not sure how I would add ...
ECMiraldo's user avatar
0 votes
1 answer
152 views

I am new to making games (I have experience only with pygame), and I want to start creating with C#. I've found out that Monogame is a very good engine. On my way of setting up, in the part where I ...
LoukasPap's user avatar
  • 103
0 votes
1 answer
425 views

I'm trying to achieve grid/tile based collisions like "a link to the past"; here is an article showing it off (sliding off the corners and such). I'm currently using this type of collision ...
MysteriousFruit's user avatar
0 votes
1 answer
158 views

I'm trying to get the direction a sprite is moving (up, down, left, right). My current approach is to get the x and y coordinates of the target and the sprite (the sprite is the thing that I'm trying ...
Beanicles's user avatar
1 vote
2 answers
245 views

I'm taking a crack at a minecraft clone in Monogame, and I am trying to get my model to render as it's shown in Blender 2.9.1. When I look at the model in Blender, it looks great. When displaying in ...
Bill Sambrone's user avatar
0 votes
1 answer
281 views

I'm attempting to create a chess game, for the movement I need to be able to click on a piece with the mouse, and then the square I'd like to move it to. Each piece on the board is a sprite, and I'm ...
jriley's user avatar
  • 1
0 votes
3 answers
226 views

How do I remove the blue background shown here So that only the level is visible without making the sprites/map larger or the window smaller?
LionCatDev Studio's user avatar
0 votes
0 answers
70 views

I am developing a top down shooter and my singleplayer is pratically finished so now I want to move on to develop multiplayer but I have some questions and I am seeking for some advices. In my game a ...
Fábio Pires's user avatar
1 vote
0 answers
266 views

I'm trying to create a camera using matrix transforms, the gist is as follows: ...
Pooper's user avatar
  • 23
0 votes
1 answer
192 views

I'm creating an infinite runner game in which you control several characters at once. Right now when you press the spacebar, they all jump at once but, I want them to jump at separately, one after ...
yasko kai's user avatar

1
2 3 4 5
16