public World(StateManager Manager, int DisplayWidth, int DisplayHeight, Renderer Render) { this.Manager = Manager; Map = new Map(300, 500); Camera = new Camera(this, DisplayWidth, DisplayHeight); FXManager = new FXManager(this); this.Render = Render; CreateNewLevel(); }
public ShockRing(FXManager Manager, int x, int y, int radius, int timer = 0) : base(Manager) { int currentRadius = 0; for (int time = timer; time < radius + timer; time++) { currentRadius++; Circle c = new Circle(x, y, currentRadius); foreach (Point p in c.GetCircle()) { AddParticle(new Particle(p.X, p.Y, 247, Color.Blue, Color.LightBlue, 1, time)); } } }
public Explosion(FXManager Manager, int x, int y, int radius, int timer = 0) : base(Manager) { Manager.Add(new ShockRing(Manager, x, y, radius, timer)); Manager.Add(new Blast(Manager, x, y, radius, timer + 5)); Manager.Add(new SmokeRing(Manager, x, y, radius, timer + 10)); }
public ParticleEffect(FXManager Manager) { particles = new List <Particle>(); this.Manager = Manager; }