Changeset 3465


Ignore:
Timestamp:
2012-07-03 11:16:05 (8 years ago)
Author:
eekrkolu
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/EemilK/pong/pong/pong/pong.cs

    r3464 r3465  
    1414    PhysicsObject maila1; 
    1515    PhysicsObject maila2; 
     16    PhysicsObject vasenReuna; 
     17    PhysicsObject oikeaReuna; 
    1618    IntMeter Pelaajan1Pisteet; 
    1719    IntMeter Pelaajan2Pisteet; 
     
    3537        pallo.Y = 0.0; 
    3638        pallo.Restitution = 1.0; 
     39        pallo.KineticFriction = 0.0; 
     40        pallo.MomentOfInertia = Double.PositiveInfinity; 
    3741        Add(pallo); 
    3842        maila1 = luoMaila(Level.Left + 20.0, 0.0); 
    3943        maila2 = luoMaila(Level.Right - 20.0, 0.0); 
    40         PhysicsObject vasenReuna = Level.CreateLeftBorder(); 
     44        vasenReuna = Level.CreateLeftBorder(); 
     45        vasenReuna.KineticFriction = 0.0; 
    4146        vasenReuna.Restitution = 1.0; 
    4247        vasenReuna.IsVisible = false; 
    43         PhysicsObject oikeaReuna = Level.CreateRightBorder(); 
     48        oikeaReuna = Level.CreateRightBorder(); 
     49        oikeaReuna.KineticFriction = 0.0; 
    4450        oikeaReuna.Restitution = 1.0; 
    4551        oikeaReuna.IsVisible = false; 
    4652        PhysicsObject alaReuna = Level.CreateBottomBorder(); 
     53        alaReuna.KineticFriction = 0.0; 
    4754        alaReuna.Restitution = 1.0; 
    4855        alaReuna.IsVisible = false; 
    4956        PhysicsObject ylaReuna = Level.CreateTopBorder(); 
     57        ylaReuna.KineticFriction = 0.0; 
    5058        ylaReuna.Restitution = 1.0; 
    5159        ylaReuna.IsVisible = false; 
Note: See TracChangeset for help on using the changeset viewer.