Ejemplo n.º 1
0
 private void create_smoke()
 {
     for (int i = 0; i < 5; i++)
     {
         Vector2 cur_pos = cross_hairs_position;
         /* move the smoke randomly -5 to 5 pixels in both x,y directions */
         cur_pos.X += randomizer.Next(-5, 5);
         cur_pos.Y += randomizer.Next(-5, 5);
         smoke_particle new_part = new smoke_particle();
         new_part.pos         = cur_pos;
         new_part.frames_left = (byte)(200 + randomizer.Next(55));
         smoke_list.Add(new_part);
     }
 }
Ejemplo n.º 2
0
 private void create_smoke()
 {
     for (int i = 0; i < 5; i++)
     {
         Vector2 cur_pos = cross_hairs_position;
         /* move the smoke randomly -5 to 5 pixels in both x,y directions */
         cur_pos.X += randomizer.Next(-5, 5);
         cur_pos.Y += randomizer.Next(-5, 5);
         smoke_particle new_part = new smoke_particle();
         new_part.pos = cur_pos;
         new_part.frames_left = (byte)(200 + randomizer.Next(55));
         smoke_list.Add(new_part);
     }
 }