0
votes

I'm using MonoGame in Windows Phone 8 game development. As you know MonoGame has no built-in content processing like XNA Studio and now I can't install XNA anymore (it required VS 2010 - my version is 2013).

So how can I convert a PNG image to XNB file without XNA Studio installed?

2

2 Answers

2
votes

You might not need to:

According to this answer: C# MonoGame Help? (Content.Load<Texture2D>("Invader");) .PNG is a supported texture format meaning you should be able to use the usual Content.Load<Texture2D>("PngFileNameWithoutExtension"); providing it's in your content folder.

When it can't find the xnb file it'll look for other supported formats, png being one of them.

0
votes

Here:

http://sourceforge.net/projects/xnbbuilder/

Allows you to convert a bunch of file types to XNB format.