monogame

Getting Monogame content pipeline to work with Visual studio 2013 in windows 8

笑着哭i 提交于 2020-01-01 05:36:08
问题 I've got monogame working in VS 2013 but I can't get the content pipeline to work. When I try to import an existing Content pipeline Project I get the following error. And I can't create a new project since the templates arent installed in 2013. Since I am running windows 8 I cannot install XNA (installer stops saying it requires Win 7 or Vista). Reading here: https://github.com/mono/MonoGame/wiki/MonoGame-Content-Processing It seems XNA is required..? EDIT Fex answer gets the templates

Touch gestures in WinRT (using monogame)

谁都会走 提交于 2019-12-25 05:34:17
问题 I currently have the following code: internal void HandleTouch() { TouchPanel.EnabledGestures = GestureType.DragComplete | GestureType.FreeDrag; while (TouchPanel.IsGestureAvailable) { GestureSample gesture = TouchPanel.ReadGesture(); if (gesture.GestureType == GestureType.DragComplete) { MyAction(gesture.Delta.X, gesture.Delta.Y); } else if (gesture.GestureType == GestureType.FreeDrag) { OtherAction(); } } } The problem that I have is that the Delta is always 0. I read somewhere that

How to set GraphicsDevice.GraphicsProfile

风格不统一 提交于 2019-12-25 05:28:52
问题 In a classic XNA application this value is set through the application properties. By default this value is set to HiDef , at least on the machine I am currently using. But it has to be set to Reach to run. My problem is that I did not find any way to effectively change this value using monogame. The property window is obviously not the same as with XNA and I did not find any config values. Changing the value in the code, in the Game constructor or the LoadContent method does not solve my

Error: GenerateWinPRTManifest

帅比萌擦擦* 提交于 2019-12-23 20:04:30
问题 I've tried to create a new monogame windows phone 8 project, when I tried to run it I got this error: Error 1 The "GenerateWinPRTManifest" task failed unexpectedly. System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at Microsoft.Silverlight

C# MonoGame Help? (Content.Load<Texture2D>(“Invader”);)

久未见 提交于 2019-12-23 19:34:57
问题 I am Making a Space Invaders Game using Open GL in MonoGame and I am trying to load a texture that I have added to the Content folder (It is a PNG file called "Invader") The code that I use is: invader = Content.Load<Texture2D>("Invader"); However when I attempt to run it It says: ContentLoadException was unhandled could not load Invader as a non-content file! 回答1: I am trying to load a texture that I have added to the Content folder (It is a PNG file called "Invader") invader = Content.Load(

Debugging in monogame

こ雲淡風輕ζ 提交于 2019-12-23 10:28:17
问题 How do you print or output text in Monogame? I googled how to display text in monogame and was led to this: Debug.WriteLine Which says: "By default, the output is written to an instance of DefaultTraceListener."(and that page just confused me more). So, if someone could direct me to a method of displaying DefaultTraceListener, or another method of outputting text in monogame, I would appreciate it. 回答1: I found it! Using Debug.WriteLine writes to the debugger, which is in the output window in

The Command…Exited With Code -532462766

本秂侑毒 提交于 2019-12-23 10:25:54
问题 This is the line that gives me the error. <Exec Command=""$(MonoGameContentBuilderExe)" /@:"%(ContentReferences.FullPath)" $(Header)" WorkingDirectory="%(ContentReferences.RootDir)%(ContentReferences.Directory)" /> It is from the MonoGame.Content.Builder.targets file. The full error is: The command ""C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools\MGCB.exe" /@:"C:\Users\Jake\documents\visual studio 2015\Projects\FirstGame\FirstGame\Content\Content.mgcb" /platform:Windows /outputDir:"C:

MonoGame Samples not compiling on Mountain Lion

故事扮演 提交于 2019-12-22 18:38:37
问题 So I installed MonoFramework, MonoDevelop and MonoMac and downloaded the latest version of MonoGame. I tried compiling the samples but they all fail with the same error Parsing error of #error Unknown platform . The problem seems to be that for some reason #if MONOMAC and #elif MONOMAC are being ignored. If I remove the Windows, XBOX and Linux related code and get rid of the #if MONOMAC the code compiles and executes. Has there been a change and should I use something else instead of MONOMAC

MonoGame Mac Templates Installation

五迷三道 提交于 2019-12-22 16:29:11
问题 I am having trouble installing the MonoGame templates in MonoDevelop on Mac. I have placed the MonoDevelop.MonoGame.2.5 folder in MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/ as instructed by the readme but after restarting monodevlop, the template is not available in the new projects section. Can anyone help with this problem? 回答1: Mac templates should be available in the 2.5.1 bug fix release, due soon. 来源: https://stackoverflow.com/questions/10508349/monogame-mac-templates

MonoGame application says SDL.dll is missing, even though it's there. Why?

99封情书 提交于 2019-12-22 08:39:28
问题 I have a MonoGame application built using the Linux Game template in Visual Studio. It runs on Windows using either .NET or Mono, but it fails on Linux. The error is a DllNotFoundException concerning SDL.dll but the SDL.dll is always in the binary's directory. The file is not a CLR assembly, so it's not in the References. Instead, I have it copied during build from MonoGame's Assemblies/Linux directory (and all related CLR assemblies are copied from that folder as well). The error appears