Making PS VITA games with MonoGame and XNA - Plunge Interactive

Making PS VITA games with MonoGame and XNA

As Arturo Adasme Vasquez used to say: “The smart man learns from his own mistakes, the wise learn from the mistakes of others”

So, after my first experiences in this area, It’s the time to write a little tutorial. To share my knowledge and avoid that others make the same mistakes that I did.

Step 0 – Configuration.

The first thing you have to do it’s prepare your development environment. So, you need…

Screen Shot 2014-01-02 at 14.21.12

 

Note: to download the PSM Studio you need an account. If you don’t have it, create a new one.

 

To deploy your Game, you also need…

  • PS Vita device (commercial device, no special DevKit is necessary) 
  • Buy an USB cable for PS Vita
  • PlayStation Vita USB Cable
  • PSM Publisher License (free)

Screen Shot 2014-01-02 at 14.23.46 psvita

Step 1 – Create a New Project.

There are no MonoGame templates in PsmStudio. So you have to create an empty project.

Open up PsmStudio, click “Start New Solution”, expand out the C# option, choose “PlayStation Mobile” and then “PlayStation Mobile Empty Project”

Screen Shot 2014-01-02 at 14.27.33

Now, add all CS files from your old XNA project by mouse.

Right mouse click on your empty project, select “add” and select “add files from a folder…” to add your CS files from your XNA Game folder.

Screen Shot 2014-01-02 at 14.28.29

 

 

  • In MonoGame folder, go to ThirdParty/Lidgren.Network/ and import Lidgren.Network.PSMobile.csproj file.
  • In MonoGame folder, go to MonoGame.Framework/ folder  and import MonoGame.Framework.PSMobile.csproj file.

Now go to your empty solution. Right click on your game project’s references and choose “Edit References”. Check the Lidgren.Network.PSMobile and MonoGame.Framework.PSMobile projects.

Screen Shot 2014-01-02 at 14.31.06

 

Note:  Check that MonoGame.Framework.PSMobile project has a reference to Lidgren.Network.PSMobile in his reference folder.

 

Step 3 – Support XNA library.

If you has done all, you will check that MonoGame framework works. PSM Studio supports all XNA libraries, but it doesn’t support native Microsoft libraries.

Well. Now all depends to your own ability to adjust your own code. Something like: remove Microsoft Libraries and code keep working, adapt your game to new resolution, change your main menu,…

Screen Shot 2014-01-02 at 14.32.22

Step 4 – Main Class.

AppMain.cs is where your application begins executing . So, your AppMain.cs file should look like this, where GamePage will be the first class to run.

Screen Shot 2014-01-02 at 14.33.11

 

Step 5 – Add Asserts

I’m sure that now you know how add files in a PSM Project, but add XNB files is a bit different than add CS files.

Right mouse click on your “Content” folder, select “add” and select “add files from a folder…” to add your xnb files from your XNA Game.

Note:  If you don’t have a Content folder, create new one with this name to save it all xnb files.

So far there is no news.

Go to your “Content” folder, right mouse click on an xnb file, select “Build Actions” and select “Content”.

Screen Shot 2014-01-02 at 14.33.50

 

Note: Before you ask…. No, there isn’t a short way to do it. You have to repeat this process with all xnb files one by one. I know it. It stinks, but that’s life.

Step 6 – Compile

Now, if you followed all steps of this tutorial, you have to build a correct solution.

Press Ctrl+F5 to check it.

So, Congratulations! You know to develop a PS Vita Game using MonoGame!

 

This article was kindly written by David Candes.

Twitter user? Follow us on @plungeint

This site uses cookies to store information on your computer. Some cookies on this site are essential, and the site won't work as expected without them. Read more about them

ACCEPT