// Constructor
 public QuadRenderComponent(Game game, Camera camera, int screenWidth, int screenHeight)
     : base(game)
 {
     // TODO: Construct any child components here
     this.camera = camera;
     this.screenWidth = screenWidth;
     this.screenHeight = screenHeight;
 }
Beispiel #2
0
 public Emitter()
 {
     Active = true;
     Particles = new List<Particle>();
     TextureList = new List<Texture2D>();
     Opacity = 255;
     camera = GameServices.GetService<Camera>();
     PooledParticles = new Queue<Particle>();
 }