In this recipe, we are going to demonstrate the various graphical transitions you can perform when switching between scenes.
Load up PlayStation Mobile Studio and create a new project. Add a reference to Sce.PlayStation.GameEngine2D
. The complete source for this example can be found in Ch4_Example4
.
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) { _text = text; var screenSize = Director.Instance.GL.Context.GetViewport(); var textImage = new Image(ImageMode.Rgba, ...