In this recipe, we are going to create an extremely simple pinwheel particle system.
Create a new solution, and add a reference to GameEngine2D. You will also need a small graphic to use as your particle; I created a small 32 x 32 pixel image that was mostly transparent. Create an image and add it to your project. The source for this project is available as Ch03_Example7
.
In
AppMain.cs
replace the existing code with the following code:using System; using System.Collections.Generic; using Sce.PlayStation.Core; using Sce.PlayStation.Core.Graphics; using Sce.PlayStation.HighLevel.GameEngine2D; using Sce.PlayStation.HighLevel.GameEngine2D.Base; namespace Ch3_Example7 { public class AppMain { public static void Main (string[] args) { Director.Initialize(); Scene scene = new Scene(); scene.Camera.SetViewFromViewport(); var particles = new Particles(2000); var pinwheel = particles.ParticleSystem...