Ignore:
Timestamp:
2013-07-23 14:43:26 (6 years ago)
Author:
viosfilp
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/VilleF/FysiikkaPeli1/FysiikkaPeli1/FysiikkaPeli1/FysiikkaPeli1.cs

    r4517 r4577  
    3535    void LuoKentta() 
    3636    { 
    37         pallo = new PhysicsObject(300.0, 300.0); 
    38         pallo.Shape = Shape.Hexagon; 
     37        pallo = new PhysicsObject(100.0, 100.0); 
     38        pallo.Shape = Shape.Rectangle; 
    3939        AddCollisionHandler(pallo, KasittelePallonTormays); 
    4040        pallo.KineticFriction = 0.0; 
    41         pallo.MomentOfInertia = Double.PositiveInfinity; 
    4241        pallo.Image = havu; 
    4342        pallo.X = -200.0; 
     
    6261 
    6362        PhysicsObject alaReuna = Level.CreateBottomBorder(); 
    64         alaReuna.Restitution = 10.0; 
     63        alaReuna.Restitution = 1.9; 
    6564        alaReuna.IsVisible = false; 
    6665        alaReuna.KineticFriction = 0.0; 
     
    8382    { 
    8483        IntMeter laskuri = new IntMeter(0); 
    85         laskuri.MaxValue = 0; 
     84        laskuri.MaxValue = 10; 
    8685        Label naytto = new Label(); 
    8786        naytto.BindTo(laskuri); 
     
    9695    void AloitaPeli() 
    9796    { 
    98         Vector impulssi = new Vector(1000,0); 
     97        Vector impulssi = new Vector(2000,0); 
    9998        pallo.Hit(impulssi); 
    10099    } 
     
    105104        maila.X = x; 
    106105        maila.Y = y; 
    107         maila.Restitution = 10.0; 
     106        maila.Restitution = 1.9; 
    108107        Add(maila); 
    109108        return maila; 
Note: See TracChangeset for help on using the changeset viewer.