Changeset 928 for 2010/24


Ignore:
Timestamp:
2010-06-16 22:12:55 (9 years ago)
Author:
tekrjant
Message:

Mäiske-efekti on kohtuullisempi, ei vie niin ihan paljon tehoja.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/24/tekrjant/Laskuvarjo/Peli.cs

    r927 r928  
    109109            if (Gore) 
    110110            { 
    111                 for (int i = 0; i < 100; i++) 
     111                for (int i = 0; i < 50; i++) 
    112112                { 
    113                     PhysicsObject jama = new PhysicsObject(RandomGen.NextInt(1, 5), RandomGen.NextInt(1, 5)); 
     113                    PhysicsObject jama = new PhysicsObject(RandomGen.NextInt(1, 5), RandomGen.NextInt(1, 5), Shapes.Rectangle, CollisionShapeQuality.Worst); 
    114114                    jama.X = pelaaja.X; 
    115115                    jama.Y = pelaaja.Y; 
    116                     Vector maiskeenlento = Vector.FromLengthAndAngle(RandomGen.NextDouble(0, 1000), RandomGen.NextAngle()); 
     116                    Vector maiskeenlento = Vector.FromLengthAndAngle(RandomGen.NextDouble(0, 800), RandomGen.NextAngle()); 
    117117                    jama.KineticFriction = 0.5; 
    118118                    jama.LinearDamping = 0.99; 
    119119                    jama.Color = RandomGen.NextColor(Color.Red, Color.Brown); 
    120                     //jama.Color = Color.Red; 
    121120                    jama.Hit(maiskeenlento); 
    122121                    Add(jama); 
Note: See TracChangeset for help on using the changeset viewer.