It is possible to store data directly in the application assembly, instead of as a separate file. This recipe demonstrates how to store and retrieve an image resource from the application assembly.
Open PlayStation Mobile Studio and create a new application. You will need to include the Sce.PlayStation.HighLevel.GameEngine2D
library reference. For the image file, I will be re-using our trusty FA-18H sprite, although you of course can use whatever image you wish. You can download this complete recipe as Ch9_Example5
.
In your newly created solution, add the image file to your project. Right-click on the image file and select Build Action | EmbeddedResource.
Now open AppMain.cs
and replace the code there 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...