Implementation of Microsoft's XNA 4 APIS for Android, iOS, MacOS and Linux.
0
votes
0answers
32 views
Use opentk window handle to host wpf control - Monogame
well my boss asked me to try and get wpf controls rendered in Monogame.
From what I understand this was easly doable in Xna, however in monogame it fails.
Is there any way to make the window hadle ...
3
votes
1answer
48 views
Spritebatch Vertex shader world matrix change after each draw
I have a spritebatch where I draw some textures transformed in 3d space.
The easy way was just Begin with the transformation matrix, draw, and end it right after.
But that is silly, so I'm trying ...
0
votes
1answer
16 views
Monogame mouse handlelike touche panel style
I work wwith XNA Monogame, i made a game for windows phone that i want to port on windows 8. But touchPanel and windows don't correspond.
I'm stuck with mouse event.
I want to reproduce these :
...
1
vote
0answers
32 views
Neclex spritefont not found
I am using MonoGame to port my XNA Windows Phone app to iPhone. All is well except that my fonts look distorted/smudged on the iPhone.
Turns out this is due to the way that MonoGame builds the ...
2
votes
0answers
92 views
How do I make a MonoGame resolution independent?
I'm working on a simple XNA game. I've finished the mobile phone version.
However, my boss wants the game to works on his RT. So after some days of research, I've finally found and set up MonoGame.
...
0
votes
0answers
7 views
How to mark instance for deletion in XNA/Monogame [migrated]
In my tower defense game I am making when my enemies die, well I want them to die right? So, I need to delete them. I am coming over from C++ where you can just delete instances of a class with delete ...
0
votes
2answers
78 views
Get current window position with Monogame
I'm looking for some help figuring out the current position of the Monogame windowed form. My ultimate goal is to figure out when the user is clicking inside of the game window and where they're ...
0
votes
2answers
69 views
Where is MonoGame's API reference?
I wanted to pick up Monogame, but I can't find documentation. All I see on GitHub is some tutorials. I'm looking for class reference like this from XNA.
0
votes
2answers
81 views
How to work with delta time?
I've just started using MonoGame (which pretty much seems to be an open implementation of XNA) and I'm trying to figure out on how to work with framerate independant calculations. Usually what I found ...
0
votes
1answer
31 views
XNA Monogame GameState Management not deserilaizing
I am having some trouble serializing/deserializing in a little game I am doing to teach myself monogame.
Basically, I am using the gamestatemnanagement resources common to monogame (screen manager ...
1
vote
1answer
65 views
MonoGame - when/how to save data
I am making a simple 2d game for WP in monogame/xna and am at a point where I want to save data. I have created a method to serialize the data (index, counter and percentage counter) to an isolated ...
2
votes
0answers
56 views
Optimizing parallax effect with multiple transparent layers?
I have a parallax effect in MonoGame that consists of multiple semi-transparent layers of textures. The effect is really simple but rendering multiple transparent layers on top of each other is rather ...
2
votes
2answers
72 views
Workaround for Texture2D.GetData
I’m converting a game from XNA to iOS with Monogame.
In the code snippet below, smallDeform is a Texture2D on which I call the GetData method.
smallDeform = ...
0
votes
2answers
104 views
Encode two integers into colour values and compare them in a HLSL shader
I am writing a 2D point and click adventure game in Monogame, and I'd like to be able to create an image mask for every room which defines which parts of the background a character can walk behind, ...
0
votes
1answer
103 views
Programming and drawing to deal with different screen sizes and resolutions
I started making an XNA game years ago and picked it up recently.
I'm looking later to convert it to use Monogame so that it can be deployed on various mobile devices and OS, though I have a sinking ...
0
votes
0answers
63 views
Create random level platforms on screen
I'm trying to create random level platforms like this:
public Level(int platfromsInLevel, Texture2D sprite, int screenWidth)
{
rnd = new Random();
this.screenWidth = screenWidth;
...
3
votes
0answers
63 views
Is multipass rendering possible with SpriteBatch?
I'm trying to implement a bloom effect. This requires three shader passes: a brightness threshold, a horizontal blur, and a vertical blur. It also requires resizes, but these are irrelevant to the ...
1
vote
1answer
59 views
Drawing sprites to a permanent Texture2d using Monogame / XNA
I'm working with Monogame to do a 2d sprite engine. I've gotten it work pretty well where I can move lots of sprites around the screen with the effects and positions that I want.
Last night I tried ...
1
vote
0answers
143 views
Monogame is not using GPU?
I have the following code in Draw loop:
for (int i = 0; i < 512; i++)
{
for (int j = 0; j < 512; j++)
{
spriteBatch.Draw(Textures.Grass, ...
1
vote
1answer
34 views
Why isn't this UIButton visible in Xamarin.iOS?
I'm trying to implement buttons into my game. I noticed iOS has the UIButton class, which I tried, but upon drawing it nothing is shown. The asset image is properly loaded, I've checked this. The ...
0
votes
0answers
16 views
DispatcherTimer throws UnauthorizedAccessException
I am currently porting my XNA project to MonoGame.
When running the XNA Project, there are no errors with DispatcherTimers.
But in the current MonoGame port, initializing a DispatcherTimer throws the ...
0
votes
0answers
58 views
Loading assets in Monogame
I'm creating a MonoGame application on Visual Studio 2012, yet when trying to load a texture I get the following problem:
Could not load Menu/btnPlay asset!
I have set content directory: ...
2
votes
1answer
64 views
XNA calculate normals for linesegment
I am quite new to 3D graphical programming and thus far only understand that normal somehow define the direction in which a vertex faces and therefore the direction in which light is reflected. I have ...
1
vote
2answers
117 views
Input of mouseclick not always registered in XNA Update method
I have a problem that not all inputs of my mouse events seem to be registered.
The update logic is checking a 2 dimensional array of 10x10 .
It's logic for a jewel matching game.
So when i switch my ...
0
votes
0answers
120 views
Best way to go about sorting 2D sprites in a “RPG Maker” styled RPG
I am trying to come up with the best way to create overlapping sprites without having any issues. I was thinking of having a SortedDictionary and setting the Entity's key to it's Y position relative ...
1
vote
0answers
69 views
Xbox Controller Not Connecting in Monogame Project
I have recently been playing around with the support of the wired XBox 360 controller in Windows development. I am developing in C# in Visual Studio 2012.
I have created 2 projects. The first ...
0
votes
1answer
92 views
C# Collision Math Help
I am making my own collision detection in MonoGame. I have a PolyLine class That has a property to return the normal of that PolyLine instance. I have a ConvexPolySprite class that has a List ...
0
votes
1answer
40 views
IOS monogame 17 seconds debug timeout
I'm trying to debug a monogame application using xamarin studio and breakpoint.
Is it possible to disable the 17 seconds timeout on the FinishedLaunching function?
-1
votes
1answer
165 views
How do I make a health bar that drains when the player takes damage? C#/XNA
I've drawn a Health Bar before and had it drain/refill on a button press using if statements and rectangles.
First I loaded the image, then I set a new rectangle to be equal to the image's height and ...
1
vote
1answer
113 views
XNA - Where should I start playing a song?
I am just wondering where is the best place to start playing the background song for a game. In the loadContent() method, Draw(), or Update() methods or when I initialize it?
I am trying to make it ...
0
votes
0answers
70 views
Monogame Font Problems in Windows Metro
Last week, I decided to see if I could develop a Windows 8 game for Metro using Monogame. I got the app to load, run and quit properly, but I cannot get fonts to render no matter what I try. When I ...
0
votes
0answers
95 views
I am getting an AccessViolationException error in Visual Studio 2012 and MonoGame w/ C# [on hold]
Here is a link to a screenshot of the error:
It also says OpenTK.pdb Not Open as well.
This happens when I close the game window after running it.
When I comment out this part of my code, it ...
0
votes
0answers
90 views
Loading sound file into monogame
I'm trying to load sound into my game. I downloaded an .mp3 sound (a second long) and tried to load it both as Song and as SoundEffect, but it didn't work, so I tried loading the same sound but as ...
0
votes
0answers
21 views
Monogame and Visual studio 2010 express cant find spritefont template [duplicate]
I have monogame 3.0 and Visual Studio 2010 C# Express installed on my computer.
I want to draw string on screen. But monogame wants me to add a spritefont for it. I click Content directory and ...
1
vote
2answers
88 views
XNA Calculate two points of triangle with given Z
I want to calculate the two points of a 3D triangle that have a specified Z coordinate. I guess the way to do this would be to somehow create a plane which is perfectly flat with my given Z coordinate ...
0
votes
0answers
43 views
XNA inverted matrix acting strange
First of all, I am trying to calculate the two points of a triangle that have a given z position. I have figured out what I think to be quite a good method. First of all I move the triangle to be ...
0
votes
1answer
76 views
Port a WP7 game to WP8 with Monogame
I have a full working game for WP7, I want to port it to WP8 with Monogame. I have installed Monogame and I have done all tests to see that it is working inside Visual Studio Express 2012 for Windows ...
4
votes
1answer
109 views
GetData() error creating framebuffer
I'm currently porting a game written in C# with XNA library to Android with Monogame.
I have a Texture2D and i'm trying to get an array of uint in this way:
Texture2d textureDeform = ...
0
votes
1answer
145 views
MonoGame crash trying to load font from .xnb file
My MonoGame project uses a pre-compiled .xnb file to load a sprite font, and it works fine on Windows XP. The .xnb file is marked as content and copied to the output directory.
I've copied the ...
11
votes
4answers
570 views
Monogame minimum hardware requirements?
What are the minimum hardware / driver requirements for running a Monogame 3.x game, on each of the various Operating Systems?
7
votes
3answers
371 views
Reusable top-down collision class
I've recently picked up monogame and am working on a simple top down game to get me started and learn the basics.
I've got the movement and the rotation to follow the mouse sorted out but I'm stuck ...
2
votes
0answers
121 views
Monogame working with Krypton
I am trying to make a simple 2D game engine using Monogame and the Krypton 2.0 lighting engine. So far I have succeeded in rendering a light but I am unable to generate any shadows from any hull's. ...
1
vote
1answer
84 views
Should I be using Reach or HiDef profile if I have large spritesheets?
I'm working on a platformer in monogame, that I want to use a large number of sprites for making up items and objects in the background.
The main spritesheet I've created is 4095x3734, when I tried ...
0
votes
1answer
98 views
Monogame/SharpDX Texture2D doesn't hold value
The problem I have discovered is most likely between classes, so I dont really have much option but to post the whole code here:
https://www.dropbox.com/sh/smyw9t1ap3by2vd/pBX-aJJ-Qx
I have been ...
2
votes
1answer
213 views
Rotate 2D Isometric World
Games like RollerCoaster Tycoon allow you to rotate the view at 90 degree intervals. I'm wondering how I could apply this to a game I'm making. I'm using MonoGame... but I'm wondering more if anyone ...
1
vote
0answers
139 views
Windows 8 C# Compile spritefonts for MonoGame without XNA
Hello Stack Exchange community. Recently, I've been attempting to in some way generate sprite-fonts into XNB files for use with MonoGame. The issue is however, as you may be aware, XNA is very ...
2
votes
1answer
257 views
Monogame crashes without any change
I've written a game in MonoGame, which works great on my desktop computer. It's running Windows 8, has a good graphics card and can be assumed to be up to date with everything.
However, when I run on ...
8
votes
4answers
590 views
Detecting “Any Button Press”
I'm trying to allow the player to press any button to continue from the main page. I was able to do this by making a List of Buttons and looping through these and checking for one of them being down; ...
-1
votes
1answer
107 views
Recommended aspect ratio for android / smartphones?
I'm making a game for android and would do it in 720p, but the phones got all different aspect ratios.
Also thinking about a ios and windows phone port later.
When the aspect ratio does not match, ...
2
votes
2answers
229 views
Large resolution differences
I want to develop a game on multiple devices such as PC, Android or IOS.
Want it to be in 1080p, but that means a massive scale down for the smartphones.
I know how to do that, just render everything ...