PlayStation®Mobile Development Cookbook


PlayStation®Mobile Development Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn how you can create your own fantastic PlayStation®Mobile (PSM) applications
  • Develop 2D games quickly and easily, complete with graphics, audio, and input
  • Discover how to construct your own 3D world, import models, and even create texture and vertex shaders

Book Details

Language : English
Paperback : 322 pages [ 235mm x 191mm ]
Release Date : March 2013
ISBN : 1849694184
ISBN 13 : 9781849694186
Author(s) : Michael Fleischauer
Topics and Technologies : All Books, Game Development, Cookbooks, Games

Table of Contents

Preface
Chapter 1: Getting Started
Chapter 2: Controlling Your PlayStation Mobile Device
Chapter 3: Graphics with GameEngine2D
Chapter 4: Performing Actions with GameEngine2D
Chapter 5: Working with Physics2D
Chapter 6: Working with GUIs
Chapter 7: Into the Third Dimension
Chapter 8: Working with the Model Library
Chapter 9: Finishing Touches
Appendix: Publishing Your Application
Index
  • Chapter 1: Getting Started
    • Introduction
    • Accessing the PlayStation Mobile portal
    • Installing the PlayStation Mobile SDK
    • Creating a simple game loop
    • Loading, displaying, and translating a textured image
    • "Hello World" drawing text on an image
    • Deploying to PlayStation certified Mobile Android devices
    • Deploying to a PlayStation Vita
    • Manipulating an image dynamically
    • Working with the filesystem
    • Handling system events
    • Chapter 2: Controlling Your PlayStation Mobile Device
      • Introduction
      • Handling the controller's d-pad and buttons
      • Using the Input2 wrapper class
      • Using the analog joysticks
      • Handling touch events
      • Using the motion sensors
      • Creating onscreen controls for devices without gamepads
      • Configuring an Android application to use onscreen controls
      • Chapter 3: Graphics with GameEngine2D
        • Introduction
        • A game loop, GameEngine2D style
        • Creating scenes
        • Adding a sprite to a scene
        • Creating a sprite sheet
        • Using a sprite sheet in code
        • Batching a sprite with SpriteLists
        • Manipulating a texture's pixels
        • Creating a 2D particle system
        • Chapter 4: Performing Actions with GameEngine2D
          • Introduction
          • Handling updates with Scheduler
          • Working with the ActionManager object
          • Using predefined actions
          • Transitioning between scenes
          • Simple collision detection
          • Playing background music
          • Playing sound effects
          • Chapter 5: Working with Physics2D
            • Introduction
            • Creating a simple simulation with gravity
            • Switching between dynamic and kinematic
            • Creating a (physics!) joint
            • Applying force and picking a physics scene object
            • Querying if a collision occurred
            • Rigid body collision shapes
            • Building and using an external library
            • Chapter 6: Working with GUIs
              • Introduction
              • "Hello World" – HighLevel.UI style
              • Using the UI library within a GameEngine2D application
              • Creating and using hierarchies of widgets
              • Creating a UI visually using UIComposer
              • Displaying a MessageBox dialog
              • Handling touch gestures and using UI effects
              • Handling language localization
              • Chapter 7: Into the Third Dimension
                • Introduction
                • Creating a simple 3D scene
                • Displaying a textured 3D object
                • Implementing a simple camera system
                • A fragment (pixel) shader in action
                • A vertex shader in action
                • Adding lighting to your scene
                • Using an offscreen frame buffer to take a screenshot
                • Chapter 8: Working with the Model Library
                  • Introduction
                  • Importing a 3D model for use in PlayStation Mobile
                  • Loading and displaying a 3D model
                  • Using BasicProgram to perform texture and shader effects
                  • Controlling lighting using BasicProgram
                  • Animating a model
                  • Handling multiple animations
                  • Using bones to add a sword to our animated model
                  • Chapter 9: Finishing Touches
                    • Introduction
                    • Opening and loading a web browser
                    • Socket-based client and server networking
                    • Accessing (Twitter) data over the network using REST and HttpWebRequest
                    • Copying and pasting using Clipboard
                    • Embedding and retrieving a resource from the application assembly
                    • Configuring your application using PublishingUtility
                    • Creating downloadable content (DLC) for your application

                      Michael Fleischauer

                      Michael Fleischauer has spent the last 16 years working as a programmer in a number of different industries from 3D tools creation to automotive and banking. Most recently he launched the internet start-up Flexamail. In his spare time he writes for and runs the game development site GameFromScratch.com, a popular destination for game development tutorials and news. Michael was recently made the first PlayStation Mobile MVP by Sony. Michael lives in Toronto, Canada with his wife and daughter.

                      Sorry, we don't have any reviews for this title yet.

                      Code Downloads

                      Download the code and support files for this book.


                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                      Errata

                      - 1 submitted: last submission 12 Aug 2013

                      Errata type: code | Page number: 112 | Errata date: 12th August 2013

                      This code snippet:

                       

                      Open AppMain.cs and replace the existing code with the following code:
                      using System;
                      using Sce.PlayStation.Core;
                      using Sce.PlayStation.Core.Graphics;
                      using Sce.PlayStation.Core.Imaging;
                      using Sce.PlayStation.HighLevel.GameEngine2D;
                      using Sce.PlayStation.HighLevel.GameEngine2D.Base;
                      namespace Ch4_Example4
                      {
                        public class ExampleScene : Scene
                        {
                          String _text;
                          TextureInfo _ti;
                          Texture2D _texture;
                         
                          public ExampleScene (string text, ImageColor textColor, int
                      textSize)
                          {...

                      (continues...)

                       

                      should be:

                       

                      1. Open AppMain.cs and replace the existing code with the following code:
                      using System;
                      using System.Collections.Generic;

                      using Sce.PlayStation.Core;
                      using Sce.PlayStation.Core.Environment;
                      using Sce.PlayStation.Core.Graphics;
                      using Sce.PlayStation.Core.Imaging;
                      using Sce.PlayStation.Core.Input;
                      using Sce.PlayStation.HighLevel.GameEngine2D;
                      using Sce.PlayStation.HighLevel.GameEngine2D.Base;

                      namespace Ch4_Example4
                      {
                          public class AppMain{
                              public static void Main (string[] args)    {
                                  Director.Initialize();
                                  ExampleScene scene = new ExampleScene("Scene1",new ImageColor(255,0,0,255),220);
                                  Director.Instance.RunWithScene(scene);
                              }
                          }
                      }

                      2. Then create a new file,  ExampleScene.cs, then add the following code:

                      using System;
                      using Sce.PlayStation.Core;
                      using Sce.PlayStation.Core.Graphics;
                      using Sce.PlayStation.Core.Imaging;
                      using Sce.PlayStation.HighLevel.GameEngine2D;
                      using Sce.PlayStation.HighLevel.GameEngine2D.Base;
                      namespace Ch4_Example4
                      {
                        public class ExampleScene : Scene
                        {
                          String _text;
                          TextureInfo _ti;
                          Texture2D _texture;
                         
                          public ExampleScene (string text, ImageColor textColor, int
                      textSize)
                          {...

                      (continues...)

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      PlayStation®Mobile Development Cookbook +    IBM InfoSphere Replication Server and Data Event Publisher =
                      50% Off
                      the second eBook
                      Price for both: €36.65

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • Discover how to handle multiple sources of input to really help you create something unique
                      • Load and animate sprites within your own 2D game to get up and running quickly with the SDK
                      • Harness the power of the GameEngine 2D library to make your workflow easier
                      • Add engaging physics to your game projects with amazing ease
                      • Learn how to play a variety of sound effects and music and increase player immersion
                      • Create and navigate a 3D world, taking your visuals to the next level
                      • Use 3D models and shaders to make your projects look stunning
                      • Add multiplayer functionality for exciting competitive and cooperative gameplay

                      In Detail

                      With the PlayStation®Mobile SDK you can create stunning games for the PlayStation®Vita and PlayStation™Certified devices (PS Certified devices). It includes everything you need to get started, including an IDE for developing your code and even an emulator to test your creations.

                      "PlayStation®Mobile Development Cookbook"| is an exciting and practical collection of recipes that help you make the most of this exciting new platform. It provides you with everything you need to create complete 2D or 3D games and applications that fully unlock the potential of the SDK.

                      After quickly covering the basics, you'll learn how to utilize input sources like touch, gamepads, and motion controls, and then move on to more advanced content like creating and animating 2D graphics, networking, playing sound effects and music, adding physics, and then finally jumping into the world of 3D.

                      Approach

                      Written as a series of engaging and practical recipes, this essential Cookbook has been meticulously designed and reviewed in order to provide you with the ultimate reference for PlayStation®Mobile development.

                      Who this book is for

                      If you've got some prior experience with C# and want to create awesome projects for the PlayStation®Vita and PlayStation™Certified devices, then this book is for you.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Resources
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software