In this recipe, we are going to demonstrate the use of a number of the built-in actions available in GameEngine2D.
Load up PlayStation Mobile Studio and create a new project. Add a reference to Sce.PlayStation.GameEngine2D
. We are going to re-use the earth sprite from the previous recipe, but you can substitute any other image. The complete source and images for this example can be found in Ch4_Example3
.
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.Input; using Sce.PlayStation.HighLevel.GameEngine2D; using Sce.PlayStation.HighLevel.GameEngine2D.Base; namespace Ch4_Example3 { public class AppMain { public static void Main (string[] args) { Director.Initialize(); Scene scene = new Scene(); scene.Camera.SetViewFromViewport...