In this recipe, we are going to implement a derived scene object, MyScene
.
Load up PlayStation Mobile Studio and create a new project or duplicate the code from the A game loop, GameEngine2D style recipe, as the AppMain.cs
code is going to be virtually unchanged. The complete source for this example can be found in Ch3_Example2
.
In the Solution pane of PlayStation Mobile Studio, right-click on your Project (
Ch3_Example2
) and select the menu Add | New File....In the New File dialog box, select General on the left-hand side, Empty Class on the right, then at the bottom in the Name: field, enter
MyScene.cs
, and click on the New button.In
MyScene.cs
, enter the following code:using System; using Sce.PlayStation.Core; using Sce.PlayStation.HighLevel.GameEngine2D; using Sce.PlayStation.HighLevel.GameEngine2D.Base; namespace Ch3_Example2 { public class MyScene : Scene { private Label _labelTopLeft; private Label _labelTopRight; private Label...