Implementation of Microsoft's XNA 4 APIS for Android, iOS, MacOS and Linux.

learn more… | top users | synonyms

0
votes
1answer
76 views

Controller vibration with Monogame

Is there a simple way to make a connected Xbox controller vibrate with Monogame? I know that GamePad.SetVibration is not implemented but it seems like this would be a common enough problem that there ...
0
votes
2answers
115 views

Collision detection with moving tilemap

I have a player whose who's sprite is 48* 32. I know the player's position. The player can move up and down based on user input. I have a tilemap which moves. Here is an example of the array I use to ...
0
votes
1answer
104 views

Center a 3D model to cursor's position

I am having a hard time understanding how to go about this. I have a 2D game with some 3D models in it. I want to move a 3D model to where the mouse cursor is currently at in every frame (In other ...
0
votes
1answer
41 views

Set an scaled image rectangle coordinates

I have used the Origin parameter to draw the image (the image is also scaled) in center of the screen, and created a rectangle to detect whether user tapped on that image. The problem is that if I tap ...
0
votes
1answer
135 views

Drawing the same model multiple times

I am looking ways to improve the efficiency of my draw method in XNA/Monogame and understand how things work. I have just a group of 4 models (bricks), (red, green, blue, yellow) I am drawing multiple ...
0
votes
1answer
47 views

Most efficient way to hide out of bounds object in tile based environment [duplicate]

I am working on a desktop game in C#, with Monogame framework. I am storing the tile instances in a 2D Array, for the sake of easy collision detection. But the levels are big (often 100x100 or bigger) ...
2
votes
1answer
123 views

Rendering lighting only on specific objects

I have done something similar to this in monogame: My question is, what would I have to do to draw that lighting effect only on the pillar and not the background ? Is there something like ...
-1
votes
1answer
153 views

Loading Texture2d content in Monogame [closed]

I am using Monogame and following this tutorial series: https://www.youtube.com/watch?v=agt9-J9RPZ0 I am trying to load a Texture2d into the window and despite not getting any error messages the ...
1
vote
0answers
35 views

SpriteBatch passing textures to GPU

How exactly (or, how often) are textures passed to the GPU shaders in MonoGame/XNA? I am asking because I was profiling a MonoGame/XNA application and noticed that the memory controller load (using ...
0
votes
2answers
166 views

How to correctly enable anti aliasing in XNA?

In my project when I add graphics.PreferMultiSampling = true; this line in the Game1 Constructor (as the msdn website suggests), anti aliasing does not enable. Any idea what I might be missing ? Here ...
-1
votes
1answer
53 views

Logic outside of game loop running slower than calculated

I've been trying to figure out what is happening when I run functions from the update loop in XNA that the game freezes for a few seconds until the function is done. When I do performance testing to ...
0
votes
0answers
31 views

How to DrawUserPrimitives after Drawing a separate Vertex List

I am currently making a voxel based game and so far I have chunk loading working well. My voxels are stored in an array, then pushed to a VertexBuffer, then drawn as a triangle list. My problem is ...
0
votes
0answers
50 views

Monogame Spritefont XNB file doesn't show up in Content VS2013 Community

I created an XNB file for a spritefont in VS 2010 with XNA 4.0, and copied it into the content folder of my project, but it doesn't appear in the solution explorer of VS 2013. I am using the ...
0
votes
1answer
64 views

Draw 3D model on top of another one

I am trying to draw a 3D model I made with Blender in Monogame/XNA and this is the result I get when I draw 2 of them on top of each other How can I make it so that the colors don't add up, but the ...
0
votes
0answers
103 views

Back button press on Windows Phone 8.1 Monogame

I am developing a simple game for windows phone and I got stuck when at the handling the back button press. I have been searching for a while on google but I have not found anything that could work ...
0
votes
1answer
82 views

MonoGame in GTK#

I was wondering if it's possible to embed a MonoGame instance not in the standard window, but rather in a GTK# widget. If yes, how could I do it? Do I have to write a custom widget? Is it even better ...
0
votes
0answers
77 views

Multi-textured terrain XNA-monogame

I'm developing a TerrainEngine for my project and I have some issues with the multi-texturing part. I already tried some techniques but it doesn't match with my TerrainEngine's conception. My ...
1
vote
1answer
218 views

Can’t Load .fbx from blender to Monogame correctly

I am using pipeline.exe tool, to convert an .fbx file I made using Blender (using the default Blender 2.73a export settings) to .xnb, and then manually copy and paste it in my content directory (Is ...
0
votes
0answers
63 views

Game Center Leaderboards in Monogame

Do anyone know how to integrate a game center leaderboard in monogame framwork... I have searched high and low yet I haven't gotten any luck of finding articles that might help... Please direct to ...
0
votes
2answers
70 views

Using shader for cubes

I am trying to use a shader to get an effect like this. Notice how every cube has exactly the same lightning as every other no matter where it is on the screen if you look closely the lightning is ...
0
votes
1answer
47 views

XNA draw texture/font and DrawIndexedPrimitives at the same time [duplicate]

When i Draw a texture2d or a font with spriteBatch and also draw GraphicsDevice.DrawIndexedPrimitives, the frame is draw weird SpriteBatch spriteBatch = new SpriteBatch(GraphicsDevice); BasicEffect ...
0
votes
3answers
169 views

Drawing 3D cubes with xna

I managed to draw a 3d cube using triangles like this: protected override void LoadContent() { basicEffect = new BasicEffect(GraphicsDevice); VertexPositionColor[] ...
0
votes
2answers
153 views

Drawing image with an angle

Edit: the images below aren't supposed to have whitespace. I am just trying to show you that i am trying to create a rectangle from a 1x64 image, positioned as shown in the second picture I know how ...
0
votes
1answer
196 views

Lightning bolt effect with particles is not continuous

I am Drawing a lightning effect animation using this image: Below the result: As you can see the outcome is not a continuous purple color as I wanted it to be, but it has black spaces in ...
-1
votes
1answer
111 views

How to remove the jitter from my pong AI movement?

I am developing Pong using Monogame / XNA and my AI paddle is really jittery when the ball is moving more horizontally than vertically. My AI is very simple and works as follows: If the ball's ...
1
vote
2answers
109 views

Scaling sprites in XNA 4.0/Monogame

So I looked up a tutorial on how to scale sprites in XNA and I think I have it all figured out. The only problem is that I want to use a spriteBatch.Begin() method overload without changing anything ...
0
votes
0answers
71 views

Farseer physics engine: save world simulation and load at a later time

I have created a windows desktop game using monogame and the Farseer Physics engine (FPE 3.5). In this game I would like to the user to be able to save the game and continue at a later time. When I ...
3
votes
2answers
138 views

How to make my installer install XNA framework and .NET 4.0

I have made a simple Monogame game. Right now I am using this installation-package maker: http://installforge.net/ Currently my installer only installs my "game". (All the output files generated by ...
1
vote
1answer
44 views

Porting WP8 to IOS GraphicsDevice Error (Monogame/Xamarin)

I seem to be having a problem porting to IOS. I have my game working on WP8 and Android with any major issues but when trying to run on iPhone I seem to get an error when initialising the ...
0
votes
0answers
22 views

SharpDX - Cannot get custom content resolver to work

I've been trying to implement a custom IContentResolver for my game with SharpDX, my goal is to be able to load all of my assets from my project's resource files. Here is the code that I use: public ...
0
votes
1answer
303 views

How can I map regions on a world map image?

I am trying to use a map of the real world, but I need to have a way to break it down by countries and regions. Ideally down to a province level. I figure that I'd need to be able to define ...
0
votes
2answers
364 views

C# xna/monogame ghost trail effect

I would like some know how can someone make an animation like this, in Monogame specifically.Since i am completely clueless on how to go around this i how should i go about this ? I hate asking ...
0
votes
0answers
35 views

Porting from WP7 to WP8 and Android (Monogame) - Screen Scaling

Sorry if this seems like a silly question but I have ported a game across from WP7 to 8 and noticed the game didn't auto scale so the game was just over a quarter of the screen. which lead me to the ...
1
vote
2answers
73 views

XNA/Monogame inverting a BoundingBox

I have a box that is drawn around my game that I want to check collisions with. Currently my BoundingBox is made in a way that whatever is inside the box is colliding with it: BoundingBox bb = new ...
0
votes
1answer
494 views

MonoGame: Draw thousands of quads without hardware instancing

In my game, every bit of geometry is a textured quad billboard in 3D. I have many thousands of these things on screen at once, sometimes with overdraw. As I understand it, there are a few ways I can ...
2
votes
1answer
122 views

MonoGame SetRenderTarget is wiping the backbuffer

In my Monogame (XNA) Windowed App, compiled for Windows PC, running on Windows 7, I have public RenderTarget2D renderTarget = null; In the Inititate() function I have renderTarget = new ...
1
vote
1answer
75 views

How can I change the rendering backend on Windows in Monogame?

I'm using MonoGame with Visual Studio 2013 Express. I'd like to switch from a SharpDX backend to OpenGL and OpenAL. How do I achieve that?
0
votes
1answer
699 views

Adding SpriteFont in Monogame

My question is probably something you guys have heard before - "How do you add SpriteFont's in Monogame's content manager?" The simple answer to this is, right click the 'Content' folder, go on 'Add ...
5
votes
2answers
123 views

Monogame [Linux] cannot resize screen

While working on a Monogame project on Linux (Arch to be exact), I found that I could not change the screen height away from the default 800 px, while I could easily, perfectly change the width to ...
0
votes
2answers
151 views

Saving Scores on iOS and Android devices using Monogame

Quick question. What is the best way to save a game score in a mobile device (iOS and Android) using Monogame (example game Flappy Bird score)? You can also list ways and approaches of saving scores ...
0
votes
0answers
34 views

MonoGame iOS .m4a song files load exception

On previous MonoGame iOS projects I have successfully loaded songs as raw .m4a files without using the content pipeline since .mp3 has a hefty license cost. A few days ago I updated to the latest ...
1
vote
1answer
50 views

How to detect when a moving rectangle (sprite) is tapped

I am new to Monogame. I am currently developing a simple game, just to learn some basics of Monogame development. The idea here is to detect whether or not the user has tapped on a a rectangle ...
0
votes
0answers
122 views

Monogame: Unsupported Landscape Screen Orientation on iOS 8.0

Did anyone have a fix on the landscape orientation problem that monogame has or is it the iOS 8.0 that has a bug? I have visited the github of monogame and tried to compile the latest developer ...
1
vote
1answer
139 views

Monogame on GitHub

I've been searching for hours but I cannot find "How to compile the latest monogame source code from github"? I have tried cloning the github project (develop) and ive been looking for the solution ...
0
votes
1answer
189 views

How to get display resolution (screen size)?

How to get display resolution in XNA/Monogame ? I tried these on my monitor (1600x900): The below give me 800,600 //1. GraphicsDevice.DisplayMode.Width GraphicsDevice.DisplayMode.Height //2. ...
1
vote
2answers
70 views

Better way to position objects in a Matrix/Grid shape

I am working on space a invader game and I'm trying to build levels such that in each of them, the aliens are positioned in a different shape. I have a rectangle shape, circle shape, and a grid-like ...
2
votes
1answer
101 views

Alternative Font loaders in Monogame Framework

While working on projects of mine, I have been finding that it is a huge pain to switch operating systems just to create a simple spritefont when using Monogame. I saw that the Nuclex Framework can ...
0
votes
0answers
30 views

TouchCollection positon not matching button position

I am using a TouchCollection of touchlocations to determine if a button has been pressed, However the touchlocation position does not correspond with the button location as I would expect, the touch ...
0
votes
1answer
29 views

Drawing in a static location when using a camara transform

I'm using a matrix transform to move a 2d camera in Monogame, and I was wondering: How, if I initiated my spritebatch with a matrix transform, can I draw something in a static (non-moving) position? ...
0
votes
1answer
119 views

How can I set a MonoGame window's position?

How do I set the position of my window in MonoGame?