Advertisement
Guest User

ChaoticParticle - emitter

a guest
Feb 23rd, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1.     public class ChaoticParticle : ParticleEmitter
  2.     {
  3.           public ChaoticParticle(MatrixCoords position, MatrixCoords speed, Random randomGenerator) :
  4.             base(position, speed, randomGenerator)
  5.         {
  6.         }
  7.  
  8.         public override char[,] GetImage()
  9.         {
  10.             return new char[,] { { (char)18 } };
  11.         }
  12.  
  13.         public override IEnumerable<Particle> Update()
  14.         {
  15.             this.Speed = GetRandomCoords();
  16.             this.Move();
  17.             return new List<Particle>();
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement