[Tutorial]How to be a official PS VITA PS Mobile developer

Discuss PSM/Rejuvenate/UVLoader.. Hacks, Mods,Games, emulators & Homebrew.
Post Reply
shadowfuuk
Junior Member
Posts: 11
Joined: Wed Oct 08, 2014 11:03 am

[Tutorial]How to be a official PS VITA PS Mobile developer

Post by shadowfuuk » Sun Oct 19, 2014 7:58 pm

In this tutorial I teach you how to create your own applications for PS VITA with PlayStation Mobile Studio (PSM Studio).
First, you have to download the PSM Studio from this page: https://psm.playstation.net/static/gene ... m_sdk.html **( you need to register,but don't worry, you only need a PSN account and an email address)**


After download and install, enter in this page from your PS VITA: https://psm.playstation.net/static/gene ... stant.html and download the PSM Dev Assistant for PS VITA.

Image

Image

Image

Image


Well, it's time to do our first program: The Hello World.
First, open the PSM Studio and go to New-->Solution. After that select C#-->PlayStation Mobile-->PlayStation Mobile Application.

Image

Now in the top bar select Visual Design.

Image


Now we have a new bar in the left side. In this new bar do right click in References and select "Sce.PlayStation.HighLevel.UI" and click OK.

Image

The final step is select with double click "Appmain.cs"...

Image


and delete the code that's there and copy this new code:

Code: Select all

using System;
using System.Collections.Generic;

using Sce.PlayStation.Core;
using Sce.PlayStation.Core.Environment;
using Sce.PlayStation.Core.Graphics;
using Sce.PlayStation.Core.Input;
using Sce.PlayStation.HighLevel.UI;

namespace UIToolkitApp
{
    public class AppMain
    {
        private static GraphicsContext graphics;


        public static void Main (string[] args)
        {
            Initialize ();


            while (true) {
                SystemEvents.CheckEvents ();
                Update ();
                Render ();
            }
        }
public static void Initialize ()
        {
            // Set up the graphics system
            graphics = new GraphicsContext ();


            // Initialize UI Toolkit
            UISystem.Initialize(graphics);


            // Create scene
            Scene scene = new Sce.PlayStation.HighLevel.UI.Scene();
            Label label = new Label();
            label.X = 10.0f;
            label.Y = 50.0f;
            label.Text = "Hello World!";
            scene.RootWidget.AddChildLast(label);
            // Set scene
            UISystem.SetScene(scene, null);
        }


        public static void Update ()
        {
            // Query gamepad for current state
            var gamePadData = GamePad.GetData (0);


            // Query touch for current state
            List<TouchData> touchDataList = Touch.GetData (0);


            // Update UI Toolkit
            UISystem.Update(touchDataList);
        }


        public static void Render ()
        {
            // Clear the screen
            graphics.SetClearColor (0.0f, 0.0f, 0.0f, 0.0f);
            graphics.Clear ();


            // Render UI Toolkit
            UISystem.Render ();


            // Present the screen
            graphics.SwapBuffers ();
        }
    }
} 
 
And congratulations, you do your first program for the PS VITA :mrgreen: . To test the code just press F5 or connect your PS VITA with CMA and select "PS VITA" in the top bar (you have to open the PSM Dev Assistant in your PS VITA. See how to pack your app below)

Image

You get something like this:

Image


To test and Run it : *****Here*****

Done & This is Not My Work
The source : Wololo
PSVita 3G/Wifi 3.30 FW
Xbox 360 Phat 120 GB Litetouch
User avatar
Fanou
Junior Member
Posts: 18
Joined: Tue Oct 14, 2014 12:12 am

RE: [Tutorial]How to be a official PS VITA PS Mobile developer

Post by Fanou » Mon Oct 20, 2014 11:42 am

Nice Tutorial ;) - Thanks :)
PsP Fat 1004 CFW 6.60 ME-2.3
PS Vita 1000 [OFW 3.50]
shadowfuuk
Junior Member
Posts: 11
Joined: Wed Oct 08, 2014 11:03 am

RE: [Tutorial]How to be a official PS VITA PS Mobile developer

Post by shadowfuuk » Mon Oct 20, 2014 12:13 pm

No Problem
PSVita 3G/Wifi 3.30 FW
Xbox 360 Phat 120 GB Litetouch
Post Reply