Creating scenes
In this recipe, we are going to implement a derived scene object, MyScene
.
Getting ready
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
.
How to do it...
- 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 ...
Get PlayStation®Mobile Development Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.