Feuerwerk

by Julian on December 28th, 2011
No notes
Syntax: C#
Show lines - Hide lines - Show in textbox - Download
  1. list<Partikel> partikel = new list<Partikel>();
  2. void newFeuerwerk(Vector2 position) //oder halt x,y
  3. {
  4. Partikel.abweichung = new List<float>();
  5.  
  6. for (int i = 0; i < 25; i++)
  7. {
  8. Partikel.abweichung.Add(rand.Next(0, 360));
  9. Partikel temp = new Partikel(position, //bei mir: position der Maus
  10. i, //Nummer des Partikels
  11. rand.Next(1, 10) / 100.0f);//Geschwindigkeit des Partikels
  12. partikel.Add(temp);
  13. }
  14. }

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS